| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 1d7b4f0612dadf034d3e234ee2b970e902feb678..952a8c0814ec716aa3b739cd220d6d6aa8cba03b 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -1251,6 +1251,10 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
|
| browser_process_->profile_manager()->SetWillImport();
|
| }
|
|
|
| + // Called before CreateProfile because creating the profile can trigger
|
| + // calls to GetDefaultProfile().
|
| + ProfileManager::AllowGetDefaultProfile();
|
| +
|
| profile_ = CreateProfile(parameters(), user_data_dir_, parsed_command_line());
|
| if (!profile_)
|
| return content::RESULT_CODE_NORMAL_EXIT;
|
|
|