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

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

Issue 10108001: Refactor print preview web ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/print_preview_data_source.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_data_source.cc b/chrome/browser/ui/webui/print_preview/print_preview_data_source.cc
index 2cc993f6d939907b96c228a784e34bb7369da5bd..12cd4c583c780a65d994b3bec3972aca65d93205 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_data_source.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_data_source.cc
@@ -142,6 +142,18 @@ void PrintPreviewDataSource::Init(bool is_dummy) {
set_default_resource(IDR_PRINT_PREVIEW_DUMMY_HTML);
} else {
add_resource_path("print_preview.js", IDR_PRINT_PREVIEW_JS);
+ add_resource_path("images/classic_printer_24.png",
+ IDR_PRINT_PREVIEW_IMAGES_CLASSIC_PRINTER_24);
+ add_resource_path("images/cloud_printer_24.png",
+ IDR_PRINT_PREVIEW_IMAGES_CLOUD_PRINTER_24);
+ add_resource_path("images/google_sponsored_printer_24.png",
+ IDR_PRINT_PREVIEW_IMAGES_GOOGLE_SPONSORED_PRINTER_24);
+ add_resource_path("images/classic_printer_32.png",
+ IDR_PRINT_PREVIEW_IMAGES_CLASSIC_PRINTER_32);
+ add_resource_path("images/cloud_printer_32.png",
+ IDR_PRINT_PREVIEW_IMAGES_CLOUD_PRINTER_32);
+ add_resource_path("images/google_sponsored_printer_32.png",
+ IDR_PRINT_PREVIEW_IMAGES_GOOGLE_SPONSORED_PRINTER_32);
set_default_resource(IDR_PRINT_PREVIEW_HTML);
}
}

Powered by Google App Engine
This is Rietveld 408576698