Commit 79104d18 authored by abodenha@chromium.org's avatar abodenha@chromium.org

Trigger print immediately on selecting GCP escape hatch on Chrome OS


BUG=102223
TEST=Bring up print preview in Chrome OS.  Open the printer selection dropdown and choose to search for additional printers.  Print preview should go away and cloud print dialog should appear.


Review URL: http://codereview.chromium.org/8341126

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108155 0039d316-1c4b-4281-b951-d872f2087c98
parent 8e52db9f
...@@ -272,6 +272,8 @@ function updateControlsWithSelectedPrinterCapabilities() { ...@@ -272,6 +272,8 @@ function updateControlsWithSelectedPrinterCapabilities() {
'printerColorModelForColor': print_preview.ColorSettings.COLOR, 'printerColorModelForColor': print_preview.ColorSettings.COLOR,
'printerDefaultDuplexValue': copiesSettings.UNKNOWN_DUPLEX_MODE, 'printerDefaultDuplexValue': copiesSettings.UNKNOWN_DUPLEX_MODE,
'disableCopiesOption': true}); 'disableCopiesOption': true});
if (cr.isChromeOS && selectedValue == PRINT_WITH_CLOUD_PRINT)
sendPrintDocumentRequest();
} else { } else {
// This message will call back to 'updateWithPrinterCapabilities' // This message will call back to 'updateWithPrinterCapabilities'
// function. // function.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment