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

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

Issue 7648037: [Mac] Flip the flag for multi-profiles to on by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Un-needed includes Created 9 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/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());
+}

Powered by Google App Engine
This is Rietveld 408576698