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()); |