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

Unified Diff: chrome/browser/android/meta_tag_observer.cc

Issue 373623002: Convert remaining WebContentsObservers loading callbacks to use RFH. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one more compile error Created 6 years, 5 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
Index: chrome/browser/android/meta_tag_observer.cc
diff --git a/chrome/browser/android/meta_tag_observer.cc b/chrome/browser/android/meta_tag_observer.cc
index 77425b851bb1c4f5a15497b052cd990e04613c83..c5db909ccf99194531bb2d205d7502991677a368 100644
--- a/chrome/browser/android/meta_tag_observer.cc
+++ b/chrome/browser/android/meta_tag_observer.cc
@@ -6,7 +6,7 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/render_messages.h"
-#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
@@ -21,12 +21,10 @@ MetaTagObserver::MetaTagObserver(const std::string& meta_tag)
MetaTagObserver::~MetaTagObserver() {
}
-void MetaTagObserver::DidFinishLoad(
- int64 frame_id,
- const GURL& validated_url,
- bool is_main_frame,
- content::RenderViewHost* render_view_host) {
- if (!is_main_frame) return;
+void MetaTagObserver::DidFinishLoad(content::RenderFrameHost* render_frame_host,
+ const GURL& validated_url) {
+ if (render_frame_host->GetParent())
+ return;
validated_url_ = validated_url;
Send(new ChromeViewMsg_RetrieveMetaTagContent(routing_id(),
validated_url,
« no previous file with comments | « chrome/browser/android/meta_tag_observer.h ('k') | chrome/browser/chromeos/first_run/drive_first_run_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698