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

Unified Diff: content/browser/intents/intent_injector.cc

Issue 9030010: Move most of the remaining users of WebContentsObserver::tab_contents() to use web_contents(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « content/browser/download/save_package.cc ('k') | content/browser/intents/web_intents_dispatcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/intents/intent_injector.cc
===================================================================
--- content/browser/intents/intent_injector.cc (revision 115777)
+++ content/browser/intents/intent_injector.cc (working copy)
@@ -68,13 +68,13 @@
if (source_intent_.get() == NULL ||
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableWebIntents) ||
- tab_contents()->GetRenderViewHost() == NULL) {
+ web_contents()->GetRenderViewHost() == NULL) {
return;
}
// Send intent data through to renderer.
- tab_contents()->GetRenderViewHost()->Send(new IntentsMsg_SetWebIntentData(
- tab_contents()->GetRenderViewHost()->routing_id(),
+ web_contents()->GetRenderViewHost()->Send(new IntentsMsg_SetWebIntentData(
+ web_contents()->GetRenderViewHost()->routing_id(),
*(source_intent_.get())));
source_intent_.reset(NULL);
}
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/browser/intents/web_intents_dispatcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698