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

Unified Diff: chrome/browser/browser_main.cc

Issue 7631008: Print Preview: Add "print preview" back to about:flags; enable it by default just once. (Closed) Base URL: svn://chrome-svn/chrome/branches/782/src/
Patch Set: Created 9 years, 4 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
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 97007)
+++ chrome/browser/browser_main.cc (working copy)
@@ -1425,6 +1425,17 @@
if (!parsed_command_line.HasSwitch(switches::kNoErrorDialogs))
WarnAboutMinimumSystemRequirements();
+ // Enable print preview once for supported platforms.
+#if defined(GOOGLE_CHROME_BUILD) && !defined(OS_MACOSX)
vandebo (ex-Chrome) 2011/08/16 21:57:48 Not for CrOS as well?
Lei Zhang 2011/08/16 22:17:04 Done.
+ local_state->RegisterBooleanPref(prefs::kPrintingEnablePrintPreview,
+ false,
+ PrefService::UNSYNCABLE_PREF);
+ if (!local_state->GetBoolean(prefs::kPrintingEnablePrintPreview)) {
+ local_state->SetBoolean(prefs::kPrintingEnablePrintPreview, true);
+ about_flags::SetExperimentEnabled(local_state, "print-preview", true);
+ }
+#endif
+
// Convert active labs into switches. Modifies the current command line.
about_flags::ConvertFlagsToSwitches(local_state,
CommandLine::ForCurrentProcess());

Powered by Google App Engine
This is Rietveld 408576698