| Index: chrome/test/base/testing_profile_manager.cc
|
| diff --git a/chrome/test/base/testing_profile_manager.cc b/chrome/test/base/testing_profile_manager.cc
|
| index e6f4748a30d9d85fc5fa2b954c19644ebb2305c4..f7ab2262314af4802ad04fad88ff325d8f566766 100644
|
| --- a/chrome/test/base/testing_profile_manager.cc
|
| +++ b/chrome/test/base/testing_profile_manager.cc
|
| @@ -57,11 +57,10 @@ TestingProfile* TestingProfileManager::CreateTestingProfile(
|
| profile_path = profile_path.AppendASCII(profile_name);
|
|
|
| // Create the profile and register it.
|
| - TestingProfile* profile = new TestingProfile(
|
| - profile_path,
|
| - NULL,
|
| - scoped_refptr<ExtensionSpecialStoragePolicy>(),
|
| - prefs.Pass());
|
| + TestingProfile::Builder builder;
|
| + builder.SetPath(profile_path);
|
| + builder.SetPrefService(prefs.Pass());
|
| + TestingProfile* profile = builder.Build().release();
|
| profile_manager_->AddProfile(profile); // Takes ownership.
|
|
|
| // Update the user metadata.
|
|
|