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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 1432143002: Track where WebContents are created in order to better understand issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/ui/cocoa/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index 077877456f318d85668b8aa990edc949f4e55bad..37ea798bacb4a21f922085627318f38fe61ca3dd 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -55,6 +55,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_source.h"
#include "google_apis/gaia/oauth2_token_service.h"
#include "grit/theme_resources.h"
#include "skia/ext/skia_utils_mac.h"
@@ -2102,6 +2103,8 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
webContents_.reset(content::WebContents::Create(
content::WebContents::CreateParams(browser_->profile())));
+ WebContentsSource::CreateForWebContentsAndLocation(webContents_.get(),
+ FROM_HERE);
webContentsDelegate_.reset(new GaiaWebContentsDelegate());
webContents_->SetDelegate(webContentsDelegate_.get());

Powered by Google App Engine
This is Rietveld 408576698