From 0209b44ddecd6c8884cdeb61379c906021c25ecb Mon Sep 17 00:00:00 2001 From: "abodenha@chromium.org" Date: Wed, 18 Jul 2012 00:38:05 +0000 Subject: Make StickySettings sticky across sessions. Print preview currently keeps settings "sticky" within a single browser session so that if the user chooses a printer or settings it will be remembered the next time preview is launched. This CL extends that behavior to make the settings stick across multiple sessions. BUG=111957 TEST=Enable flag. Verify that all print preview settings that are sticky within a session are sticky across sessions. Review URL: https://chromiumcodereview.appspot.com/10780004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147142 0039d316-1c4b-4281-b951-d872f2087c98 --- printing/print_job_constants.cc | 3 +++ printing/print_job_constants.h | 1 + 2 files changed, 4 insertions(+) (limited to 'printing') diff --git a/printing/print_job_constants.cc b/printing/print_job_constants.cc index 5448d26..42a0d48 100644 --- a/printing/print_job_constants.cc +++ b/printing/print_job_constants.cc @@ -27,6 +27,9 @@ const char kSettingCollate[] = "collate"; // Print out color: true for color, false for grayscale. const char kSettingColor[] = "color"; +// Default to color on or not. +const char kSettingSetColorAsDefault[] = "setColorAsDefault"; + // Key that specifies the height of the content area of the page. const char kSettingContentHeight[] = "contentHeight"; diff --git a/printing/print_job_constants.h b/printing/print_job_constants.h index b57495b..b5efef0 100644 --- a/printing/print_job_constants.h +++ b/printing/print_job_constants.h @@ -17,6 +17,7 @@ PRINTING_EXPORT extern const char kSettingCloudPrintId[]; PRINTING_EXPORT extern const char kSettingCloudPrintDialog[]; PRINTING_EXPORT extern const char kSettingCollate[]; PRINTING_EXPORT extern const char kSettingColor[]; +PRINTING_EXPORT extern const char kSettingSetColorAsDefault[]; PRINTING_EXPORT extern const char kSettingContentHeight[]; PRINTING_EXPORT extern const char kSettingContentWidth[]; PRINTING_EXPORT extern const char kSettingCopies[]; -- cgit v1.1