blob: 44131871470522ec0ff792e2a11a1d2917b16902 [file] [log] [blame]
[email protected]c604a552010-03-22 20:12:501// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// This file defines dummy implementation of several functions from the
6// master_preferences namespace for Google Chrome. These functions allow 64-bit
7// Windows Chrome binary to build successfully. Since this binary is only used
8// for Native Client support which uses the 32 bit installer, most of the
9// master preferences functionality is not actually needed.
10
11#include "chrome/installer/util/master_preferences.h"
12
13#include <windows.h>
14
15#include "base/logging.h"
[email protected]c02c853d72010-08-07 06:23:2416#include "base/values.h"
[email protected]c604a552010-03-22 20:12:5017#include "googleurl/src/gurl.h"
18
19namespace installer_util {
20
21bool GetDistroBooleanPreference(const DictionaryValue* prefs,
22 const std::wstring& name,
23 bool* value) {
[email protected]8cec5fa2010-05-20 19:18:2924 // This function is called by InstallUtil::IsChromeFrameProcess()
25 // We return false because GetInstallPreferences returns an empty value below.
[email protected]c604a552010-03-22 20:12:5026 return false;
27}
28
29bool GetDistroIntegerPreference(const DictionaryValue* prefs,
30 const std::wstring& name,
31 int* value) {
32 NOTREACHED();
33 return false;
34}
35
36DictionaryValue* GetInstallPreferences(const CommandLine& cmd_line) {
[email protected]8cec5fa2010-05-20 19:18:2937 // This function is called by InstallUtil::IsChromeFrameProcess()
38 // so we cannot make it NOTREACHED()
39 return new DictionaryValue();;
[email protected]c604a552010-03-22 20:12:5040}
41
42DictionaryValue* ParseDistributionPreferences(
43 const FilePath& master_prefs_path) {
44 NOTREACHED();
45 return NULL;
46}
47
48std::vector<GURL> GetFirstRunTabs(const DictionaryValue* prefs) {
49 NOTREACHED();
50 return std::vector<GURL>();
51}
52
53std::vector<GURL> GetDefaultBookmarks(const DictionaryValue* prefs) {
54 NOTREACHED();
55 return std::vector<GURL>();
56}
57
58bool SetDistroBooleanPreference(DictionaryValue* prefs,
59 const std::wstring& name,
60 bool value) {
61 NOTREACHED();
62 return false;
63}
64
65bool HasExtensionsBlock(const DictionaryValue* prefs,
66 DictionaryValue** extensions) {
67 NOTREACHED();
68 return false;
69}
70
71}