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

Unified Diff: chrome/browser/intents/register_intent_handler_helper.cc

Issue 10539065: TabContentsWrapper -> TabContents, part 19. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « no previous file | chrome/browser/intents/register_intent_handler_infobar_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/intents/register_intent_handler_helper.cc
diff --git a/chrome/browser/intents/register_intent_handler_helper.cc b/chrome/browser/intents/register_intent_handler_helper.cc
index 88c1f96b0a7e4fb71b97ba9f8b077720e28d6f71..8701c7f393aa0ec7d272114051e9720745257268 100644
--- a/chrome/browser/intents/register_intent_handler_helper.cc
+++ b/chrome/browser/intents/register_intent_handler_helper.cc
@@ -10,7 +10,7 @@
#include "chrome/browser/intents/web_intents_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "content/public/browser/web_contents.h"
#include "webkit/glue/web_intent_service_data.h"
@@ -21,20 +21,19 @@ void Browser::RegisterIntentHandlerHelper(
WebContents* tab,
const webkit_glue::WebIntentServiceData& data,
bool user_gesture) {
- TabContentsWrapper* tcw =
- TabContentsWrapper::GetCurrentWrapperForContents(tab);
- if (!tcw || tcw->profile()->IsOffTheRecord())
+ TabContents* tab_contents = TabContents::FromWebContents(tab);
+ if (!tab_contents || tab_contents->profile()->IsOffTheRecord())
return;
- if (!web_intents::IsWebIntentsEnabledForProfile(tcw->profile()))
+ if (!web_intents::IsWebIntentsEnabledForProfile(tab_contents->profile()))
return;
FaviconService* favicon_service =
- tcw->profile()->GetFaviconService(Profile::EXPLICIT_ACCESS);
+ tab_contents->profile()->GetFaviconService(Profile::EXPLICIT_ACCESS);
RegisterIntentHandlerInfoBarDelegate::MaybeShowIntentInfoBar(
- tcw->infobar_tab_helper(),
- WebIntentsRegistryFactory::GetForProfile(tcw->profile()),
+ tab_contents->infobar_tab_helper(),
+ WebIntentsRegistryFactory::GetForProfile(tab_contents->profile()),
data,
favicon_service,
tab->GetURL());
« no previous file with comments | « no previous file | chrome/browser/intents/register_intent_handler_infobar_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698