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