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

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

Issue 6794035: Move dispatching and sending of the last extension specific messages out of TabContents and Rende... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/ui/web_applications/web_app_ui.cc
===================================================================
--- chrome/browser/ui/web_applications/web_app_ui.cc (revision 80315)
+++ chrome/browser/ui/web_applications/web_app_ui.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/path_service.h"
#include "base/task.h"
#include "base/win/windows_version.h"
+#include "chrome/browser/extensions/extension_tab_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
@@ -92,7 +93,7 @@
: tab_contents_(tab_contents),
profile_path_(tab_contents->profile()->GetPath()) {
web_app::GetShortcutInfoForTab(tab_contents_, &shortcut_info_);
- web_app::GetIconsInfo(tab_contents_->tab_contents()->web_app_info(),
+ web_app::GetIconsInfo(tab_contents_->extension_tab_helper()->web_app_info(),
&unprocessed_icons_);
file_name_ = web_app::internals::GetSanitizedFileName(shortcut_info_.title);
@@ -292,7 +293,8 @@
DCHECK(info); // Must provide a valid info.
const TabContents* tab_contents = tab_contents_wrapper->tab_contents();
- const WebApplicationInfo& app_info = tab_contents->web_app_info();
+ const WebApplicationInfo& app_info =
+ tab_contents_wrapper->extension_tab_helper()->web_app_info();
info->url = app_info.app_url.is_empty() ? tab_contents->GetURL() :
app_info.app_url;

Powered by Google App Engine
This is Rietveld 408576698