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

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

Issue 8872051: Print preview: Display a dummy page when a user visits chrome://print directly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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.h
===================================================================
--- chrome/browser/ui/webui/print_preview_data_source.h (revision 114056)
+++ chrome/browser/ui/webui/print_preview_data_source.h (working copy)
@@ -30,7 +30,7 @@
// to return the markup or other resources for the print preview page itself.
class PrintPreviewDataSource : public ChromeWebUIDataSource {
public:
- PrintPreviewDataSource();
+ explicit PrintPreviewDataSource(bool is_dummy);
// ChromeURLDataManager::DataSource implementation.
virtual void StartDataRequest(const std::string& path,
@@ -38,6 +38,7 @@
int request_id) OVERRIDE;
private:
virtual ~PrintPreviewDataSource();
+ void Init(bool is_dummy);
DISALLOW_COPY_AND_ASSIGN(PrintPreviewDataSource);
};
« no previous file with comments | « chrome/browser/ui/webui/constrained_html_ui.cc ('k') | chrome/browser/ui/webui/print_preview_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698