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

Unified Diff: chrome/browser/bookmarks/bookmark_manager_extension_api.cc

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures 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/bookmarks/bookmark_manager_extension_api.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_manager_extension_api.cc (revision 117871)
+++ chrome/browser/bookmarks/bookmark_manager_extension_api.cc (working copy)
@@ -25,6 +25,7 @@
#include "chrome/common/chrome_view_type.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/render_view_host_delegate.h"
+#include "content/browser/webui/web_ui.h"
#include "content/public/browser/web_contents.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -427,7 +428,7 @@
dispatcher()->delegate()->GetAssociatedWebContents();
CHECK(web_contents);
ExtensionWebUI* web_ui =
- static_cast<ExtensionWebUI*>(web_contents->GetWebUI());
+ static_cast<ExtensionWebUI*>(web_contents->GetWebUI()->GetController());
CHECK(web_ui);
BookmarkManagerExtensionEventRouter* router =
web_ui->bookmark_manager_extension_event_router();

Powered by Google App Engine
This is Rietveld 408576698