| Index: chrome/browser/chromeos/login/cookie_fetcher.cc
|
| diff --git a/chrome/browser/chromeos/login/cookie_fetcher.cc b/chrome/browser/chromeos/login/cookie_fetcher.cc
|
| index 48c7decf88e2a1b14c992ebb3a6844e1aa6e997a..512dedf82212b40a4a81dd8525fa793ba4a2e339 100644
|
| --- a/chrome/browser/chromeos/login/cookie_fetcher.cc
|
| +++ b/chrome/browser/chromeos/login/cookie_fetcher.cc
|
| @@ -53,7 +53,10 @@ void CookieFetcher::OnURLFetchComplete(const URLFetcher* source,
|
| }
|
|
|
| void CookieFetcher::DelegateImpl::DoLaunch(Profile* profile) {
|
| - if (profile == ProfileManager::GetDefaultProfile()) {
|
| + FilePath user_data_dir;
|
| + PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
|
| + ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| + if (profile == profile_manager->GetDefaultProfile(user_data_dir)) {
|
| LoginUtils::DoBrowserLaunch(profile);
|
| } else {
|
| LOG(ERROR) <<
|
|
|