OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/prefs/command_line_pref_store.h" | 5 #include "chrome/browser/prefs/command_line_pref_store.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "ash/ash_switches.h" | 12 #include "ash/ash_switches.h" |
11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
13 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
15 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "build/build_config.h" |
16 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
18 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_
names.h" | 22 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_
names.h" |
19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" | 23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" |
20 #include "components/proxy_config/proxy_config_dictionary.h" | 24 #include "components/proxy_config/proxy_config_dictionary.h" |
21 #include "components/proxy_config/proxy_config_pref_names.h" | 25 #include "components/proxy_config/proxy_config_pref_names.h" |
22 #include "components/ssl_config/ssl_config_prefs.h" | 26 #include "components/ssl_config/ssl_config_prefs.h" |
23 #include "components/ssl_config/ssl_config_switches.h" | 27 #include "components/ssl_config/ssl_config_switches.h" |
24 #include "content/public/common/content_switches.h" | 28 #include "content/public/common/content_switches.h" |
25 #include "ui/base/ui_base_switches.h" | 29 #include "ui/base/ui_base_switches.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 } | 199 } |
196 } | 200 } |
197 | 201 |
198 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 202 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
199 if (command_line_->HasSwitch(switches::kDisableExtensions)) { | 203 if (command_line_->HasSwitch(switches::kDisableExtensions)) { |
200 SetValue(prefs::kBackgroundModeEnabled, | 204 SetValue(prefs::kBackgroundModeEnabled, |
201 make_scoped_ptr(new base::FundamentalValue(false)), | 205 make_scoped_ptr(new base::FundamentalValue(false)), |
202 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); | 206 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); |
203 } | 207 } |
204 } | 208 } |
OLD | NEW |