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

Unified Diff: chrome/browser/net/cookie_store_util.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/cookie_store_util.cc
diff --git a/chrome/browser/net/cookie_store_util.cc b/chrome/browser/net/cookie_store_util.cc
index 7bd65a0d8e471de9a450b0072db64491af08c023..947842da397a263a7a811e18ab4f2e768d2fccf1 100644
--- a/chrome/browser/net/cookie_store_util.cc
+++ b/chrome/browser/net/cookie_store_util.cc
@@ -100,7 +100,8 @@ class ChromeCookieMonsterDelegate : public net::CookieMonsterDelegate {
namespace chrome_browser_net {
bool IsCookieRecordMode() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
// Only allow Record Mode if we are in a Debug build or where we are running
// a cycle, and the user has limited control.
return command_line.HasSwitch(switches::kRecordMode) &&
@@ -108,7 +109,8 @@ bool IsCookieRecordMode() {
}
bool ShouldUseInMemoryCookiesAndCache() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
return IsCookieRecordMode() ||
command_line.HasSwitch(switches::kPlaybackMode);
}
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698