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

Unified Diff: chrome/browser/ui/views/frame/browser_view_unittest.cc

Issue 23068005: Convert UserPolicySigninService to use OAuth2TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android fixes. Created 7 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/ui/views/frame/browser_view_unittest.cc
diff --git a/chrome/browser/ui/views/frame/browser_view_unittest.cc b/chrome/browser/ui/views/frame/browser_view_unittest.cc
index d3ad284c86876024b5c4cbfee8b65bd37730c528..924896d4cc68bc25bc301b462dec3bde5a5f6c77 100644
--- a/chrome/browser/ui/views/frame/browser_view_unittest.cc
+++ b/chrome/browser/ui/views/frame/browser_view_unittest.cc
@@ -324,9 +324,9 @@ class BrowserViewIncognitoSwitcherTest : public BrowserViewTest {
// visible.
// This profile instance is owned by the TestingProfile instance within the
// BrowserWithTestWindowTest class.
- TestingProfile* incognito_profile = new TestingProfile();
- incognito_profile->set_incognito(true);
- GetProfile()->SetOffTheRecordProfile(incognito_profile);
+ TestingProfile::Builder builder;
+ builder.SetIncognito();
+ GetProfile()->SetOffTheRecordProfile(builder.Build().Pass());
awong 2013/08/16 17:53:16 nit: you shouldn't need this. Pass().
Andrew T Wilson (Slow) 2013/08/19 12:15:56 Done.
browser_view_ = new TestBrowserView();
browser_view_->SetWindowSwitcherButton(

Powered by Google App Engine
This is Rietveld 408576698