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"
15 #include "base/logging.h"
16 #include "base/values.h"
21 MasterPreferences::MasterPreferences(const CommandLine& cmd_line)
22 : distribution_(NULL), preferences_read_from_file_(false) {
25 MasterPreferences::MasterPreferences(const base::FilePath& prefs_path)
26 : distribution_(NULL), preferences_read_from_file_(false) {
29 MasterPreferences::~MasterPreferences() {
32 bool MasterPreferences::GetBool(const std::string& name, bool* value) const {
37 bool MasterPreferences::GetInt(const std::string& name, int* value) const {
42 bool MasterPreferences::GetString(const std::string& name,
43 std::string* value) const {
48 std::vector<std::string> MasterPreferences::GetFirstRunTabs() const {
50 return std::vector<std::string>();
54 const MasterPreferences& MasterPreferences::ForCurrentProcess() {
55 static MasterPreferences prefs(*CommandLine::ForCurrentProcess());
59 } // namespace installer