summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorabodenha@chromium.org <abodenha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 00:38:05 +0000
committerabodenha@chromium.org <abodenha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 00:38:05 +0000
commit0209b44ddecd6c8884cdeb61379c906021c25ecb (patch)
tree2d26ea563fb2cb94b45218726d945a479dcc2af0 /printing
parenta90cead9c99d12d880f7b71549534e126687c483 (diff)
downloadchromium_src-0209b44ddecd6c8884cdeb61379c906021c25ecb.zip
chromium_src-0209b44ddecd6c8884cdeb61379c906021c25ecb.tar.gz
chromium_src-0209b44ddecd6c8884cdeb61379c906021c25ecb.tar.bz2
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
Diffstat (limited to 'printing')
-rw-r--r--printing/print_job_constants.cc3
-rw-r--r--printing/print_job_constants.h1
2 files changed, 4 insertions, 0 deletions
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[];