Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: chrome/browser/prefs/chrome_command_line_pref_store.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/chrome_command_line_pref_store.h" 5 #include "chrome/browser/prefs/chrome_command_line_pref_store.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 command_line()->GetSwitchValueASCII(switches::kCipherSuiteBlacklist), 158 command_line()->GetSwitchValueASCII(switches::kCipherSuiteBlacklist),
159 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)); 159 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL));
160 SetValue(ssl_config::prefs::kCipherSuiteBlacklist, std::move(list_value), 160 SetValue(ssl_config::prefs::kCipherSuiteBlacklist, std::move(list_value),
161 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 161 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
162 } 162 }
163 } 163 }
164 164
165 void ChromeCommandLinePrefStore::ApplyBackgroundModeSwitches() { 165 void ChromeCommandLinePrefStore::ApplyBackgroundModeSwitches() {
166 if (command_line()->HasSwitch(switches::kDisableExtensions)) { 166 if (command_line()->HasSwitch(switches::kDisableExtensions)) {
167 SetValue(prefs::kBackgroundModeEnabled, 167 SetValue(prefs::kBackgroundModeEnabled,
168 base::MakeUnique<base::FundamentalValue>(false), 168 base::MakeUnique<base::Value>(false),
169 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 169 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
170 } 170 }
171 } 171 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_unittest.cc ('k') | chrome/browser/prefs/chrome_pref_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698