[email protected] | c604a55 | 2010-03-22 20:12:50 | [diff] [blame] | 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 |
| 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] | c02c853d7 | 2010-08-07 06:23:24 | [diff] [blame] | 16 | #include "base/values.h" |
[email protected] | c604a55 | 2010-03-22 20:12:50 | [diff] [blame] | 17 | #include "googleurl/src/gurl.h" |
| 18 | |
| 19 | namespace installer_util { |
| 20 | |
| 21 | bool GetDistroBooleanPreference(const DictionaryValue* prefs, |
| 22 | const std::wstring& name, |
| 23 | bool* value) { |
[email protected] | 8cec5fa | 2010-05-20 19:18:29 | [diff] [blame] | 24 | // This function is called by InstallUtil::IsChromeFrameProcess() |
| 25 | // We return false because GetInstallPreferences returns an empty value below. |
[email protected] | c604a55 | 2010-03-22 20:12:50 | [diff] [blame] | 26 | return false; |
| 27 | } |
| 28 | |
| 29 | bool GetDistroIntegerPreference(const DictionaryValue* prefs, |
| 30 | const std::wstring& name, |
| 31 | int* value) { |
| 32 | NOTREACHED(); |
| 33 | return false; |
| 34 | } |
| 35 | |
| 36 | DictionaryValue* GetInstallPreferences(const CommandLine& cmd_line) { |
[email protected] | 8cec5fa | 2010-05-20 19:18:29 | [diff] [blame] | 37 | // This function is called by InstallUtil::IsChromeFrameProcess() |
| 38 | // so we cannot make it NOTREACHED() |
| 39 | return new DictionaryValue();; |
[email protected] | c604a55 | 2010-03-22 20:12:50 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | DictionaryValue* ParseDistributionPreferences( |
| 43 | const FilePath& master_prefs_path) { |
| 44 | NOTREACHED(); |
| 45 | return NULL; |
| 46 | } |
| 47 | |
| 48 | std::vector<GURL> GetFirstRunTabs(const DictionaryValue* prefs) { |
| 49 | NOTREACHED(); |
| 50 | return std::vector<GURL>(); |
| 51 | } |
| 52 | |
| 53 | std::vector<GURL> GetDefaultBookmarks(const DictionaryValue* prefs) { |
| 54 | NOTREACHED(); |
| 55 | return std::vector<GURL>(); |
| 56 | } |
| 57 | |
| 58 | bool SetDistroBooleanPreference(DictionaryValue* prefs, |
| 59 | const std::wstring& 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 | } |