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

Unified Diff: chrome/browser/background/background_contents_service.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 9c465c22842e097f933a129a82aff0bdcd137bbf..e28f2bf95a722a1df6ff3b2d95b66db18f466374 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -263,10 +263,8 @@ int BackgroundContentsService::restart_delay_in_ms_ = 3000; // 3 seconds.
BackgroundContentsService::BackgroundContentsService(
Profile* profile, const CommandLine* command_line)
: prefs_(NULL) {
- // Don't load/store preferences if the proper switch is not enabled, or if
- // the parent profile is incognito.
- if (!profile->IsOffTheRecord() &&
- !command_line->HasSwitch(switches::kDisableRestoreBackgroundContents))
+ // Don't load/store preferences if the parent profile is incognito.
+ if (!profile->IsOffTheRecord())
prefs_ = profile->GetPrefs();
// Listen for events to tell us when to load/unload persisted background
« no previous file with comments | « no previous file | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698