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

Side by Side Diff: content/browser/net/sqlite_persistent_cookie_store.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 "content/browser/net/sqlite_persistent_cookie_store.h" 5 #include "content/browser/net/sqlite_persistent_cookie_store.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 cookie_monster = 1431 cookie_monster =
1432 new net::CookieMonster(persistent_store, config.cookie_delegate.get()); 1432 new net::CookieMonster(persistent_store, config.cookie_delegate.get());
1433 if ((config.session_cookie_mode == 1433 if ((config.session_cookie_mode ==
1434 CookieStoreConfig::PERSISTANT_SESSION_COOKIES) || 1434 CookieStoreConfig::PERSISTANT_SESSION_COOKIES) ||
1435 (config.session_cookie_mode == 1435 (config.session_cookie_mode ==
1436 CookieStoreConfig::RESTORED_SESSION_COOKIES)) { 1436 CookieStoreConfig::RESTORED_SESSION_COOKIES)) {
1437 cookie_monster->SetPersistSessionCookies(true); 1437 cookie_monster->SetPersistSessionCookies(true);
1438 } 1438 }
1439 } 1439 }
1440 1440
1441 if (CommandLine::ForCurrentProcess()->HasSwitch( 1441 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1442 switches::kEnableFileCookies)) { 1442 switches::kEnableFileCookies)) {
1443 cookie_monster->SetEnableFileScheme(true); 1443 cookie_monster->SetEnableFileScheme(true);
1444 } 1444 }
1445 1445
1446 return cookie_monster; 1446 return cookie_monster;
1447 } 1447 }
1448 1448
1449 } // namespace content 1449 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/webrtc_webcam_browsertest.cc ('k') | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698