summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_command_controller_unittest.cc
diff options
context:
space:
mode:
authorakuegel@chromium.org <akuegel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-11 11:16:59 +0000
committerakuegel@chromium.org <akuegel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-11 11:16:59 +0000
commit8ac891e5c72aab8ae587351372265b2c66d09290 (patch)
tree6091ba192a174a74d7702730286fc05216193206 /chrome/browser/ui/browser_command_controller_unittest.cc
parent3b3b003dc4a4ca4329ba147a47378845bfe87524 (diff)
downloadchromium_src-8ac891e5c72aab8ae587351372265b2c66d09290.zip
chromium_src-8ac891e5c72aab8ae587351372265b2c66d09290.tar.gz
chromium_src-8ac891e5c72aab8ae587351372265b2c66d09290.tar.bz2
Create the testing profile using the TestingProfile::Builder.
This could fix the problem that some services do no shutdown properly in the test. BUG=179391 Review URL: https://chromiumcodereview.appspot.com/12610003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_command_controller_unittest.cc')
-rw-r--r--chrome/browser/ui/browser_command_controller_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser_command_controller_unittest.cc b/chrome/browser/ui/browser_command_controller_unittest.cc
index 2205e3b..a899ec5 100644
--- a/chrome/browser/ui/browser_command_controller_unittest.cc
+++ b/chrome/browser/ui/browser_command_controller_unittest.cc
@@ -328,7 +328,8 @@ TEST_F(BrowserCommandControllerTest,
ASSERT_TRUE(testing_profile_manager.SetUp());
// Set up a profile with an off the record profile.
- TestingProfile* profile2 = new TestingProfile();
+ TestingProfile::Builder builder;
+ TestingProfile* profile2 = builder.Build().release();
profile2->set_incognito(true);
TestingProfile* profile1 =
testing_profile_manager.CreateTestingProfile("p1");