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

Unified Diff: chrome/browser/extensions/extension_host.cc

Issue 3461019: FBTF: Move virtual methods to implementation files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Win+chromeos+mac fixes Created 10 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
Index: chrome/browser/extensions/extension_host.cc
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index f9137324c223d651cc40ec38a8eed3dda7ee0c34..0acc018cc013ae0e122085ae14c36750e1685ecf 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -212,6 +212,14 @@ void ExtensionHost::CreateRenderViewNow() {
DCHECK(IsRenderViewLive());
}
+Browser* ExtensionHost::GetBrowser() const {
+ return view() ? view()->browser() : NULL;
+}
+
+gfx::NativeView ExtensionHost::GetNativeViewOfHost() {
+ return view() ? view()->native_view() : NULL;
+}
+
void ExtensionHost::NavigateToURL(const GURL& url) {
// Prevent explicit navigation to another extension id's pages.
// This method is only called by some APIs, so we still need to protect

Powered by Google App Engine
This is Rietveld 408576698