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

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

Issue 7919028: Revert 101581 - Add --use-more-webui runtime flag to toggle WebUI replacements for native dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/webui/html_dialog_ui.h ('k') | chrome/browser/ui/webui/hung_renderer_dialog.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/html_dialog_ui.cc
===================================================================
--- chrome/browser/ui/webui/html_dialog_ui.cc (revision 101584)
+++ chrome/browser/ui/webui/html_dialog_ui.cc (working copy)
@@ -29,10 +29,6 @@
// and the HTML dialogs won't swap WebUIs anyway since they don't navigate.
}
-void HtmlDialogUI::CloseDialog(const base::ListValue* args) {
- OnDialogClosed(args);
-}
-
// static
PropertyAccessor<HtmlDialogUIDelegate*>& HtmlDialogUI::GetPropertyAccessor() {
return g_html_dialog_ui_property_accessor.Get();
@@ -71,8 +67,8 @@
tab_contents()->property_bag());
if (delegate) {
std::string json_retval;
- if (args && !args->empty() && !args->GetString(0, &json_retval))
- NOTREACHED() << "Could not read JSON argument";
+ if (!args->GetString(0, &json_retval))
+ NOTREACHED() << "Could not read JSON arguments";
(*delegate)->OnDialogClosed(json_retval);
}
« no previous file with comments | « chrome/browser/ui/webui/html_dialog_ui.h ('k') | chrome/browser/ui/webui/hung_renderer_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698