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

Unified Diff: chrome/browser/ui/sync/tab_contents_synced_tab_delegate.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/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
diff --git a/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc b/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
index a32ea503f43a940a53533735610d0137586fce77..4cab6ca53105ca2b2e28f517c23432404592474a 100644
--- a/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
+++ b/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
@@ -39,14 +39,15 @@ Profile* TabContentsSyncedTabDelegate::profile() const {
}
bool TabContentsSyncedTabDelegate::HasExtensionAppId() const {
- return (tab_contents_->extension_tab_helper() &&
- tab_contents_->extension_tab_helper()->extension_app());
+ return !!(extensions::TabHelper::FromWebContents(
+ tab_contents_->web_contents())->extension_app());
}
const std::string& TabContentsSyncedTabDelegate::GetExtensionAppId()
const {
DCHECK(HasExtensionAppId());
- return tab_contents_->extension_tab_helper()->extension_app()->id();
+ return extensions::TabHelper::FromWebContents(tab_contents_->web_contents())->
+ extension_app()->id();
}
int TabContentsSyncedTabDelegate::GetCurrentEntryIndex() const {
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698