| Index: chrome/browser/ui/cocoa/browser_test_helper.cc
|
| diff --git a/chrome/browser/ui/cocoa/browser_test_helper.cc b/chrome/browser/ui/cocoa/browser_test_helper.cc
|
| index bf6029e1bfa5ec536b6dff36d45636e700f51994..4339daa616bb8ac3728217012b2a446a6faa2a0d 100644
|
| --- a/chrome/browser/ui/cocoa/browser_test_helper.cc
|
| +++ b/chrome/browser/ui/cocoa/browser_test_helper.cc
|
| @@ -20,6 +20,8 @@ BrowserTestHelper::BrowserTestHelper()
|
| profile_->CreateAutocompleteClassifier();
|
| profile_->CreateTemplateURLService();
|
|
|
| + SetUpProfileManager();
|
| +
|
| browser_.reset(new Browser(Browser::TYPE_TABBED, profile_.get()));
|
| }
|
|
|
| @@ -56,3 +58,11 @@ void BrowserTestHelper::CloseBrowserWindow() {
|
| // |browser_| will be deleted by its BrowserWindowController.
|
| ignore_result(browser_.release());
|
| }
|
| +
|
| +void BrowserTestHelper::SetUpProfileManager() {
|
| + profile_manager_ = new TestingProfileManager; // Owned by browser_process_.
|
| + browser_process()->SetProfileManager(profile_manager_);
|
| +
|
| + profile_info_.reset(profile_manager_->CreateFakeInfo("Testing Profile"));
|
| + profile_manager_->AddTestingProfile(profile(), profile_info_.get());
|
| +}
|
|
|