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. 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 "base/logging.h" 14#include "base/values.h" 15 16namespace installer { 17 18MasterPreferences::MasterPreferences(const CommandLine& cmd_line) 19 : distribution_(NULL), preferences_read_from_file_(false) { 20} 21 22MasterPreferences::MasterPreferences(const base::FilePath& prefs_path) 23 : distribution_(NULL), preferences_read_from_file_(false) { 24} 25 26MasterPreferences::~MasterPreferences() { 27} 28 29bool MasterPreferences::GetBool(const std::string& name, bool* value) const { 30 NOTREACHED(); 31 return false; 32} 33 34bool MasterPreferences::GetInt(const std::string& name, int* value) const { 35 NOTREACHED(); 36 return false; 37} 38 39bool MasterPreferences::GetString(const std::string& name, 40 std::string* value) const { 41 NOTREACHED(); 42 return false; 43} 44 45std::vector<std::string> MasterPreferences::GetFirstRunTabs() const { 46 NOTREACHED(); 47 return std::vector<std::string>(); 48} 49 50// static 51const MasterPreferences& MasterPreferences::ForCurrentProcess() { 52 static MasterPreferences prefs(*CommandLine::ForCurrentProcess()); 53 return prefs; 54} 55 56} // namespace installer 57