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

Unified Diff: content/browser/webui/web_ui_impl.cc

Issue 1185363002: webui: Do not set 'toolkit' property for webui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: content/browser/webui/web_ui_impl.cc
diff --git a/content/browser/webui/web_ui_impl.cc b/content/browser/webui/web_ui_impl.cc
index 1f953a2f5e1452ac2c985e1290b70a4c98bab3e7..ed7e86011893f45d0d4e8050de0508ace06afc2c 100644
--- a/content/browser/webui/web_ui_impl.cc
+++ b/content/browser/webui/web_ui_impl.cc
@@ -83,15 +83,6 @@ void WebUIImpl::OnWebUISend(const GURL& source_url,
void WebUIImpl::RenderViewCreated(RenderViewHost* render_view_host) {
controller_->RenderViewCreated(render_view_host);
-
- // Do not attempt to set the toolkit property if WebUI is not enabled, e.g.,
- // the bookmarks manager page.
- if (!(bindings_ & BINDINGS_POLICY_WEB_UI))
- return;
-
-#if defined(TOOLKIT_VIEWS)
- render_view_host->SetWebUIProperty("toolkit", "views");
-#endif // defined(TOOLKIT_VIEWS)
}
WebContents* WebUIImpl::GetWebContents() const {
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr.js ('k') | ui/webui/resources/js/cr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698