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

Unified Diff: chrome/browser/printing/print_dialog_cloud_internal.h

Issue 9241032: Switch chrome code to use content::WebUI interface instead of WebUI concrete class. The latter wi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 11 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/printing/print_dialog_cloud_internal.h
===================================================================
--- chrome/browser/printing/print_dialog_cloud_internal.h (revision 117926)
+++ chrome/browser/printing/print_dialog_cloud_internal.h (working copy)
@@ -31,24 +31,23 @@
// Small class to virtualize a few functions to aid with unit testing.
class CloudPrintDataSenderHelper {
public:
- explicit CloudPrintDataSenderHelper(WebUI* web_ui) : web_ui_(web_ui) {}
+ explicit CloudPrintDataSenderHelper(content::WebUI* web_ui)
+ : web_ui_(web_ui) {}
virtual ~CloudPrintDataSenderHelper() {}
- // Virtualize the overrides of these three functions from WebUI to
- // facilitate unit testing.
- virtual void CallJavascriptFunction(const std::wstring& function_name);
- virtual void CallJavascriptFunction(const std::wstring& function_name,
- const base::Value& arg);
- virtual void CallJavascriptFunction(const std::wstring& function_name,
- const base::Value& arg1,
- const base::Value& arg2);
- virtual void CallJavascriptFunction(const std::wstring& function_name,
- const base::Value& arg1,
- const base::Value& arg2,
- const base::Value& arg3);
+ void CallJavascriptFunction(const std::wstring& function_name);
Elliot Glaysher 2012/01/18 01:34:08 Is it really ok to devirtualize these methods? Moc
jam 2012/01/18 01:41:38 no, that was me learning about why it's not ok to
+ void CallJavascriptFunction(const std::wstring& function_name,
+ const base::Value& arg);
+ void CallJavascriptFunction(const std::wstring& function_name,
+ const base::Value& arg1,
+ const base::Value& arg2);
+ void CallJavascriptFunction(const std::wstring& function_name,
+ const base::Value& arg1,
+ const base::Value& arg2,
+ const base::Value& arg3);
private:
- WebUI* web_ui_;
+ content::WebUI* web_ui_;
DISALLOW_COPY_AND_ASSIGN(CloudPrintDataSenderHelper);
};
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud.cc ('k') | chrome/browser/printing/print_preview_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698