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

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

Issue 2388783003: chrome: remove --disable-async-dns switch (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 prefs::kWebKitAllowRunningInsecureContent, true}, 68 prefs::kWebKitAllowRunningInsecureContent, true},
69 {switches::kAllowCrossOriginAuthPrompt, 69 {switches::kAllowCrossOriginAuthPrompt,
70 prefs::kAllowCrossOriginAuthPrompt, true}, 70 prefs::kAllowCrossOriginAuthPrompt, true},
71 {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true}, 71 {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true},
72 #if defined(OS_CHROMEOS) 72 #if defined(OS_CHROMEOS)
73 {chromeos::switches::kEnableTouchpadThreeFingerClick, 73 {chromeos::switches::kEnableTouchpadThreeFingerClick,
74 prefs::kEnableTouchpadThreeFingerClick, true}, 74 prefs::kEnableTouchpadThreeFingerClick, true},
75 {switches::kEnableUnifiedDesktop, 75 {switches::kEnableUnifiedDesktop,
76 prefs::kUnifiedDesktopEnabledByDefault, true}, 76 prefs::kUnifiedDesktopEnabledByDefault, true},
77 #endif 77 #endif
78 {switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false},
tfarina 2016/10/03 17:35:29 Do I need to remove kBuiltInDnsClientEnabled as we
79 {switches::kUnsafePacUrl, prefs::kPacHttpsUrlStrippingEnabled, false}, 78 {switches::kUnsafePacUrl, prefs::kPacHttpsUrlStrippingEnabled, false},
80 }; 79 };
81 80
82 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry 81 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry
83 CommandLinePrefStore::integer_switch_map_[] = { 82 CommandLinePrefStore::integer_switch_map_[] = {
84 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, 83 { switches::kDiskCacheSize, prefs::kDiskCacheSize },
85 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, 84 { switches::kMediaCacheSize, prefs::kMediaCacheSize },
86 }; 85 };
87 86
88 CommandLinePrefStore::CommandLinePrefStore( 87 CommandLinePrefStore::CommandLinePrefStore(
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 } 198 }
200 } 199 }
201 200
202 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { 201 void CommandLinePrefStore::ApplyBackgroundModeSwitches() {
203 if (command_line_->HasSwitch(switches::kDisableExtensions)) { 202 if (command_line_->HasSwitch(switches::kDisableExtensions)) {
204 SetValue(prefs::kBackgroundModeEnabled, 203 SetValue(prefs::kBackgroundModeEnabled,
205 base::MakeUnique<base::FundamentalValue>(false), 204 base::MakeUnique<base::FundamentalValue>(false),
206 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 205 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
207 } 206 }
208 } 207 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698