Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / installer / util / master_preferences_dummy.cc
blob54b7e670372c37bd02cd65cc951a115595742c49
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.
11 #include "chrome/installer/util/master_preferences.h"
13 #include "base/logging.h"
14 #include "base/values.h"
16 namespace installer {
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 {
30 NOTREACHED();
31 return false;
34 bool MasterPreferences::GetInt(const std::string& name, int* value) const {
35 NOTREACHED();
36 return false;
39 bool MasterPreferences::GetString(const std::string& name,
40 std::string* value) const {
41 NOTREACHED();
42 return false;
45 std::vector<std::string> MasterPreferences::GetFirstRunTabs() const {
46 NOTREACHED();
47 return std::vector<std::string>();
50 // static
51 const MasterPreferences& MasterPreferences::ForCurrentProcess() {
52 static MasterPreferences prefs(*base::CommandLine::ForCurrentProcess());
53 return prefs;
56 } // namespace installer