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

Unified Diff: chrome/browser/ui/webui/print_preview_data_source.cc

Issue 7976017: Simplified print preview printer selection to be more consistent with Chrome (Closed)
Patch Set: Fixed flow in chrome Created 9 years, 3 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
Index: chrome/browser/ui/webui/print_preview_data_source.cc
diff --git a/chrome/browser/ui/webui/print_preview_data_source.cc b/chrome/browser/ui/webui/print_preview_data_source.cc
index 6383e86d0c1d20fc07031015dc32acde3581001c..af0fb4a7a3b2f3d65fc02f0f08cf51c4adc35a43 100644
--- a/chrome/browser/ui/webui/print_preview_data_source.cc
+++ b/chrome/browser/ui/webui/print_preview_data_source.cc
@@ -93,25 +93,25 @@ PrintPreviewDataSource::PrintPreviewDataSource()
AddLocalizedString("printPreviewPageLabelPlural",
IDS_PRINT_PREVIEW_PAGE_LABEL_PLURAL);
const string16 shortcut_text(UTF8ToUTF16(kAdvancedPrintShortcut));
+#if defined(OS_CHROMEOS)
+ AddLocalizedString("systemDialogOption",
kmadhusu 2011/09/21 21:57:41 "systemDialogOption" is a just a escape hatch to u
Albert Bodenhamer 2011/09/22 23:23:39 On Chrome OS, cloud print IS the system print dial
kmadhusu 2011/09/23 01:27:19 Thanks for the clarification. On Chrome OS, if you
Albert Bodenhamer 2011/09/23 16:34:25 The link actually triggers the system print dialog
+ IDS_PRINT_PREVIEW_CLOUD_DIALOG_OPTION);
+ AddLocalizedString("printWithCloudPrint",
+ IDS_PRINT_PREVIEW_MORE_PRINTERS);
+#else
AddString("systemDialogOption", l10n_util::GetStringFUTF16(
IDS_PRINT_PREVIEW_SYSTEM_DIALOG_OPTION,
shortcut_text));
-
+ AddLocalizedString("printWithCloudPrint",
+ IDS_PRINT_PREVIEW_PRINT_WITH_CLOUD_PRINT);
kmadhusu 2011/09/21 21:57:41 IDS_PRINT_PREVIEW_PRINT_WITH_CLOUD_PRINT is a form
Albert Bodenhamer 2011/09/22 23:23:39 It has a non-translatable section for the service
kmadhusu 2011/09/23 01:27:19 I thought <ph> tags (place holder tags) allows us
Albert Bodenhamer 2011/09/23 16:34:25 Strangely, I'm having a hard time finding public d
+#endif
AddLocalizedString("pageRangeInstruction",
IDS_PRINT_PREVIEW_PAGE_RANGE_INSTRUCTION);
AddLocalizedString("copiesInstruction", IDS_PRINT_PREVIEW_COPIES_INSTRUCTION);
AddLocalizedString("signIn", IDS_PRINT_PREVIEW_SIGN_IN);
- AddLocalizedString("cloudPrinters", IDS_PRINT_PREVIEW_CLOUD_PRINTERS);
- AddLocalizedString("localPrinters", IDS_PRINT_PREVIEW_LOCAL_PRINTERS);
- AddLocalizedString("manageCloudPrinters",
- IDS_PRINT_PREVIEW_MANAGE_CLOUD_PRINTERS);
- AddLocalizedString("manageLocalPrinters",
- IDS_PRINT_PREVIEW_MANAGE_LOCAL_PRINTERS);
AddLocalizedString("managePrinters", IDS_PRINT_PREVIEW_MANAGE_PRINTERS);
AddLocalizedString("printWithCloudPrintWait",
IDS_PRINT_PREVIEW_PRINT_WITH_CLOUD_PRINT_WAIT);
- AddLocalizedString("printWithCloudPrint",
- IDS_PRINT_PREVIEW_PRINT_WITH_CLOUD_PRINT);
AddLocalizedString("incrementTitle", IDS_PRINT_PREVIEW_INCREMENT_TITLE);
AddLocalizedString("decrementTitle", IDS_PRINT_PREVIEW_DECREMENT_TITLE);
AddLocalizedString("printPagesLabel", IDS_PRINT_PREVIEW_PRINT_PAGES_LABEL);

Powered by Google App Engine
This is Rietveld 408576698