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

Unified Diff: chrome/browser/ui/browser.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 9cb4c5f6de4e65f7ce389c837627dbb30e2ec867..510863ac7833b4eaabf93c45ab1ceed6b4362902 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2196,12 +2196,12 @@ bool Browser::MaybeCreateBackgroundContents(int route_id,
content::SiteInstance::Create(opener_web_contents->GetBrowserContext());
// Passed all the checks, so this should be created as a BackgroundContents.
- BackgroundContents* contents = service->CreateBackgroundContents(
- site_instance,
- route_id,
- profile_,
- frame_name,
- ASCIIToUTF16(extension->id()));
+ BackgroundContents* contents =
+ service->CreateBackgroundContents(site_instance.get(),
+ route_id,
+ profile_,
+ frame_name,
+ ASCIIToUTF16(extension->id()));
// When a separate process is used, the original renderer cannot access the
// new window later, thus we need to navigate the window now.

Powered by Google App Engine
This is Rietveld 408576698