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

Unified Diff: chrome/browser/extensions/api/identity/identity_apitest.cc

Issue 272573005: <webview>: Move NewWindow API to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_rename
Patch Set: Merge with ToT Created 6 years, 7 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/identity/identity_apitest.cc
diff --git a/chrome/browser/extensions/api/identity/identity_apitest.cc b/chrome/browser/extensions/api/identity/identity_apitest.cc
index 7948a13d0274c50b6b27922be7660e2332b05c4a..e9200b10911222dbbad12a61827e3e02a45518f2 100644
--- a/chrome/browser/extensions/api/identity/identity_apitest.cc
+++ b/chrome/browser/extensions/api/identity/identity_apitest.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/extension_function_test_utils.h"
#include "chrome/browser/extensions/extension_service.h"
+#include "chrome/browser/guest_view/guest_view_base.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/ui/browser.h"
@@ -237,7 +238,8 @@ class WaitForGURLAndCloseWindow : public content::WindowedNotificationObserver {
// It is safe to keep the pointer here, because we know in a test, that
// the WebContents won't go away before CloseEmbedderWebContents is
// called. Don't copy this code to production.
- embedder_web_contents_ = web_contents->GetEmbedderWebContents();
+ GuestViewBase* guest = GuestViewBase::FromWebContents(web_contents);
+ embedder_web_contents_ = guest->embedder_web_contents();
// Condtionally invoke parent class so that Wait will not exit
// until the target URL arrives.
content::WindowedNotificationObserver::Observe(type, source, details);
« no previous file with comments | « chrome/browser/devtools/devtools_targets_ui.cc ('k') | chrome/browser/extensions/api/identity/web_auth_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698