blob: f9bbbe9f474fd7c0337c4785ea8c1e87799c8231 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file defines dummy implementation of several functions from the
// master_preferences namespace for Google Chrome. These functions allow 64-bit
// Windows Chrome binary to build successfully. Since this binary is only used
// for Native Client support which uses the 32 bit installer, most of the
// master preferences functionality is not actually needed.
#include "chrome/installer/util/master_preferences.h"
#include <windows.h>
#include "base/logging.h"
#include "base/values.h"
#include "url/gurl.h"
namespace installer {
MasterPreferences::MasterPreferences(const CommandLine& cmd_line)
: distribution_(NULL), preferences_read_from_file_(false) {
}
MasterPreferences::MasterPreferences(const base::FilePath& prefs_path)
: distribution_(NULL), preferences_read_from_file_(false) {
}
MasterPreferences::~MasterPreferences() {
}
bool MasterPreferences::GetBool(const std::string& name, bool* value) const {
NOTREACHED();
return false;
}
bool MasterPreferences::GetInt(const std::string& name, int* value) const {
NOTREACHED();
return false;
}
bool MasterPreferences::GetString(const std::string& name,
std::string* value) const {
NOTREACHED();
return false;
}
std::vector<std::string> MasterPreferences::GetFirstRunTabs() const {
NOTREACHED();
return std::vector<std::string>();
}
// static
const MasterPreferences& MasterPreferences::ForCurrentProcess() {
static MasterPreferences prefs(*CommandLine::ForCurrentProcess());
return prefs;
}
} // namespace installer
|