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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 8060030: Experimentally strictify third-party cookie blocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index a4cfef690f9f3b1616adfe80168e02ac68694895..48f2c37fab7ab01a28a32c0aded4771b7e75bf6b 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1359,6 +1359,16 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunInternal() {
CommandLine::ForCurrentProcess()->AppendSwitch(switches::kViewsDesktop);
#endif
+ // Always add the --block-reading-third-party-cookies flag, if not already
+ // set. We'll leave this on for a bit to determine if we Break The Web for
+ // Canary users.
+ //
+ // TODO(mkwst): Remove this once impact is clear (http://crbug.com/98241).
+ if (!parsed_command_line().HasSwitch(
+ switches::kBlockReadingThirdPartyCookies))
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kBlockReadingThirdPartyCookies);
+
// Convert active labs into switches. Modifies the current command line.
about_flags::ConvertFlagsToSwitches(local_state,
CommandLine::ForCurrentProcess());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698