blob: 44131871470522ec0ff792e2a11a1d2917b16902 (
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
60
61
62
63
64
65
66
67
68
69
70
71
|
// Copyright (c) 2010 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 "googleurl/src/gurl.h"
namespace installer_util {
bool GetDistroBooleanPreference(const DictionaryValue* prefs,
const std::wstring& name,
bool* value) {
// This function is called by InstallUtil::IsChromeFrameProcess()
// We return false because GetInstallPreferences returns an empty value below.
return false;
}
bool GetDistroIntegerPreference(const DictionaryValue* prefs,
const std::wstring& name,
int* value) {
NOTREACHED();
return false;
}
DictionaryValue* GetInstallPreferences(const CommandLine& cmd_line) {
// This function is called by InstallUtil::IsChromeFrameProcess()
// so we cannot make it NOTREACHED()
return new DictionaryValue();;
}
DictionaryValue* ParseDistributionPreferences(
const FilePath& master_prefs_path) {
NOTREACHED();
return NULL;
}
std::vector<GURL> GetFirstRunTabs(const DictionaryValue* prefs) {
NOTREACHED();
return std::vector<GURL>();
}
std::vector<GURL> GetDefaultBookmarks(const DictionaryValue* prefs) {
NOTREACHED();
return std::vector<GURL>();
}
bool SetDistroBooleanPreference(DictionaryValue* prefs,
const std::wstring& name,
bool value) {
NOTREACHED();
return false;
}
bool HasExtensionsBlock(const DictionaryValue* prefs,
DictionaryValue** extensions) {
NOTREACHED();
return false;
}
}
|