1 // Copyright (c) 2012 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.
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.
11 #include "chrome/installer/util/master_preferences.h"
13 #include "base/logging.h"
14 #include "base/values.h"
18 MasterPreferences::MasterPreferences(const base::CommandLine
& cmd_line
)
19 : distribution_(NULL
), preferences_read_from_file_(false) {
22 MasterPreferences::MasterPreferences(const base::FilePath
& prefs_path
)
23 : distribution_(NULL
), preferences_read_from_file_(false) {
26 MasterPreferences::~MasterPreferences() {
29 bool MasterPreferences::GetBool(const std::string
& name
, bool* value
) const {
34 bool MasterPreferences::GetInt(const std::string
& name
, int* value
) const {
39 bool MasterPreferences::GetString(const std::string
& name
,
40 std::string
* value
) const {
45 std::vector
<std::string
> MasterPreferences::GetFirstRunTabs() const {
47 return std::vector
<std::string
>();
51 const MasterPreferences
& MasterPreferences::ForCurrentProcess() {
52 static MasterPreferences
prefs(*base::CommandLine::ForCurrentProcess());
56 } // namespace installer