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

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

Issue 317203004: Removed --disable-background-mode/restore-background-contents flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed deprecated command line switch from cloud_print Created 6 years, 6 months 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 | Annotate | Revision Log
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/command_line_pref_store.h" 5 #include "chrome/browser/prefs/command_line_pref_store.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 base::ListValue* list_value = new base::ListValue(); 163 base::ListValue* list_value = new base::ListValue();
164 for (std::vector<std::string>::const_iterator it = cipher_strings.begin(); 164 for (std::vector<std::string>::const_iterator it = cipher_strings.begin();
165 it != cipher_strings.end(); ++it) { 165 it != cipher_strings.end(); ++it) {
166 list_value->Append(base::Value::CreateStringValue(*it)); 166 list_value->Append(base::Value::CreateStringValue(*it));
167 } 167 }
168 SetValue(prefs::kCipherSuiteBlacklist, list_value); 168 SetValue(prefs::kCipherSuiteBlacklist, list_value);
169 } 169 }
170 } 170 }
171 171
172 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { 172 void CommandLinePrefStore::ApplyBackgroundModeSwitches() {
173 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || 173 if (command_line_->HasSwitch(switches::kDisableExtensions)) {
174 command_line_->HasSwitch(switches::kDisableExtensions)) {
175 base::Value* value = base::Value::CreateBooleanValue(false); 174 base::Value* value = base::Value::CreateBooleanValue(false);
176 SetValue(prefs::kBackgroundModeEnabled, value); 175 SetValue(prefs::kBackgroundModeEnabled, value);
177 } 176 }
178 } 177 }
OLDNEW
« no previous file with comments | « chrome/browser/background/background_contents_service.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698