| 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 MasterPreferences::MasterPreferences(const CommandLine& cmd_line) |
| 22 const std::string& name, | 22 : distribution_(NULL), preferences_read_from_file_(false) { |
| 23 bool* value) { | 23 } |
| 24 |
| 25 MasterPreferences::MasterPreferences(const FilePath& prefs_path) |
| 26 : distribution_(NULL), preferences_read_from_file_(false) { |
| 27 } |
| 28 |
| 29 MasterPreferences::~MasterPreferences() { |
| 30 } |
| 31 |
| 32 bool MasterPreferences::GetBool(const std::string& name, bool* value) const { |
| 24 // This function is called by InstallUtil::IsChromeFrameProcess() | 33 // This function is called by InstallUtil::IsChromeFrameProcess() |
| 25 // We return false because GetInstallPreferences returns an empty value below. | 34 // We return false because GetInstallPreferences returns an empty value below. |
| 26 return false; | 35 return false; |
| 27 } | 36 } |
| 28 | 37 |
| 29 bool GetDistroIntegerPreference(const DictionaryValue* prefs, | 38 bool MasterPreferences::GetInt(const std::string& name, int* value) const { |
| 30 const std::string& name, | |
| 31 int* value) { | |
| 32 NOTREACHED(); | 39 NOTREACHED(); |
| 33 return false; | 40 return false; |
| 34 } | 41 } |
| 35 | 42 |
| 36 DictionaryValue* GetInstallPreferences(const CommandLine& cmd_line) { | 43 bool MasterPreferences::GetString(const std::string& name, |
| 37 // This function is called by InstallUtil::IsChromeFrameProcess() | 44 std::string* value) const { |
| 38 // so we cannot make it NOTREACHED() | 45 NOTREACHED(); |
| 39 return new DictionaryValue();; | 46 return false; |
| 40 } | 47 } |
| 41 | 48 |
| 42 DictionaryValue* ParseDistributionPreferences( | 49 std::vector<GURL> MasterPreferences::GetFirstRunTabs() const { |
| 43 const FilePath& master_prefs_path) { | |
| 44 NOTREACHED(); | |
| 45 return NULL; | |
| 46 } | |
| 47 | |
| 48 std::vector<GURL> GetFirstRunTabs(const DictionaryValue* prefs) { | |
| 49 NOTREACHED(); | 50 NOTREACHED(); |
| 50 return std::vector<GURL>(); | 51 return std::vector<GURL>(); |
| 51 } | 52 } |
| 52 | 53 |
| 53 std::vector<GURL> GetDefaultBookmarks(const DictionaryValue* prefs) { | |
| 54 NOTREACHED(); | |
| 55 return std::vector<GURL>(); | |
| 56 } | 54 } |
| 57 | |
| 58 bool SetDistroBooleanPreference(DictionaryValue* prefs, | |
| 59 const std::string& name, | |
| 60 bool value) { | |
| 61 NOTREACHED(); | |
| 62 return false; | |
| 63 } | |
| 64 | |
| 65 bool HasExtensionsBlock(const DictionaryValue* prefs, | |
| 66 DictionaryValue** extensions) { | |
| 67 NOTREACHED(); | |
| 68 return false; | |
| 69 } | |
| 70 | |
| 71 } | |
| OLD | NEW |