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

Unified Diff: chrome/browser/ui/views/create_application_shortcut_view.cc

Issue 10917026: Switch Extensions::TabHelper to use WebContents, WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 8 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/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/create_application_shortcut_view.cc
diff --git a/chrome/browser/ui/views/create_application_shortcut_view.cc b/chrome/browser/ui/views/create_application_shortcut_view.cc
index 8c2b8d68e086ace4a12d26bf0a88d2373b14b9af..1642c5ec740233eca05e1d53978c37ada36577c2 100644
--- a/chrome/browser/ui/views/create_application_shortcut_view.cc
+++ b/chrome/browser/ui/views/create_application_shortcut_view.cc
@@ -422,7 +422,8 @@ CreateUrlApplicationShortcutView::CreateUrlApplicationShortcutView(
web_app::GetShortcutInfoForTab(tab_contents_, &shortcut_info_);
const WebApplicationInfo& app_info =
- tab_contents_->extension_tab_helper()->web_app_info();
+ extensions::TabHelper::FromWebContents(tab_contents_->web_contents())->
+ web_app_info();
if (!app_info.icons.empty()) {
web_app::GetIconsInfo(app_info, &unprocessed_icons_);
FetchIcon();
@@ -440,9 +441,10 @@ bool CreateUrlApplicationShortcutView::Accept() {
if (!CreateApplicationShortcutView::Accept())
return false;
- tab_contents_->extension_tab_helper()->SetAppIcon(
- shortcut_info_.favicon.IsEmpty() ? SkBitmap() :
- *shortcut_info_.favicon.ToSkBitmap());
+ extensions::TabHelper::FromWebContents(tab_contents_->web_contents())->
+ SetAppIcon(shortcut_info_.favicon.IsEmpty()
+ ? SkBitmap()
+ : *shortcut_info_.favicon.ToSkBitmap());
Browser* browser =
browser::FindBrowserWithWebContents(tab_contents_->web_contents());
if (browser)
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698