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

Unified Diff: chrome/browser/ui/gtk/tabs/dragged_view_gtk.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/location_bar_view_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc b/chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc
index dc6986950db41532d1a24148a229e9f5f987e8d4..5a31b22443a930b5ad290b5ea20aa63b46afe7c7 100644
--- a/chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc
+++ b/chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc
@@ -71,11 +71,10 @@ DraggedViewGtk::DraggedViewGtk(DragData* drag_data,
}
for (size_t i = 0; i < drag_data_->size(); i++) {
- TabContents* tab_contents = TabContents::FromWebContents(
- drag_data_->get(i)->contents_->web_contents());
+ WebContents* web_contents = drag_data_->get(i)->contents_->web_contents();
renderers_[i]->UpdateData(
- drag_data_->get(i)->contents_->web_contents(),
- tab_contents->extension_tab_helper()->is_app(),
+ web_contents,
+ extensions::TabHelper::FromWebContents(web_contents)->is_app(),
false); // loading_only
renderers_[i]->set_is_active(
static_cast<int>(i) == drag_data_->source_tab_index());
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698