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

Unified Diff: chrome/browser/ui/web_applications/web_app_ui.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/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/web_applications/web_app_ui.cc
diff --git a/chrome/browser/ui/web_applications/web_app_ui.cc b/chrome/browser/ui/web_applications/web_app_ui.cc
index 6a04d4f58812f935da72bda978b65406576a51a2..225fd85c58edbfec33af4a8aad6d35c61be3b849 100644
--- a/chrome/browser/ui/web_applications/web_app_ui.cc
+++ b/chrome/browser/ui/web_applications/web_app_ui.cc
@@ -101,8 +101,10 @@ UpdateShortcutWorker::UpdateShortcutWorker(TabContentsWrapper* tab_contents)
file_name_ = web_app::internals::GetSanitizedFileName(shortcut_info_.title);
registrar_.Add(
- this, content::NOTIFICATION_TAB_CLOSING,
- content::Source<NavigationController>(&tab_contents_->controller()));
+ this,
+ content::NOTIFICATION_TAB_CLOSING,
+ content::Source<NavigationController>(
+ &tab_contents_->tab_contents()->controller()));
}
void UpdateShortcutWorker::Run() {
@@ -116,7 +118,7 @@ void UpdateShortcutWorker::Observe(
const content::NotificationDetails& details) {
if (type == content::NOTIFICATION_TAB_CLOSING &&
content::Source<NavigationController>(source).ptr() ==
- &tab_contents_->controller()) {
+ &tab_contents_->tab_contents()->controller()) {
// Underlying tab is closing.
tab_contents_ = NULL;
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/webui/certificate_viewer_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698