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

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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/webui/print_preview_ui_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) && !defined(OS_CHROMEOS)
+ local_state->RegisterBooleanPref(prefs::kPrintingPrintPreviewEnabledOnce,
+ false,
+ PrefService::UNSYNCABLE_PREF);
+ if (!local_state->GetBoolean(prefs::kPrintingPrintPreviewEnabledOnce)) {
+ local_state->SetBoolean(prefs::kPrintingPrintPreviewEnabledOnce, 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());
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/webui/print_preview_ui_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698