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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_api.cc

Issue 458323002: Change GuestViewInternalCreateGuestFunction to create the guest view using the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test Created 6 years, 4 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/api/tabs/tabs_api.cc
diff --git a/chrome/browser/extensions/api/tabs/tabs_api.cc b/chrome/browser/extensions/api/tabs/tabs_api.cc
index cef53ffaed2bf9743efe65bbc5ddfa490e2d0a9b..8e3da92d1eab1e6507b4649480f533b1823a7ec2 100644
--- a/chrome/browser/extensions/api/tabs/tabs_api.cc
+++ b/chrome/browser/extensions/api/tabs/tabs_api.cc
@@ -990,7 +990,7 @@ bool TabsGetFunction::RunSync() {
bool TabsGetCurrentFunction::RunSync() {
DCHECK(dispatcher());
- WebContents* contents = dispatcher()->delegate()->GetAssociatedWebContents();
+ WebContents* contents = dispatcher()->delegate()->GetVisibleWebContents();
if (contents)
SetResult(ExtensionTabUtil::CreateTabValue(contents, extension()));

Powered by Google App Engine
This is Rietveld 408576698