| Index: chrome/browser/profiles/profile_io_data.cc | 
| diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc | 
| index 959394bd14c622818beccebc633b17f779f77ea1..2efcaccd20d0783c7b0cf086e526532258508b94 100644 | 
| --- a/chrome/browser/profiles/profile_io_data.cc | 
| +++ b/chrome/browser/profiles/profile_io_data.cc | 
| @@ -639,9 +639,10 @@ scoped_ptr<net::URLRequestJobFactory> ProfileIOData::SetUpJobFactoryDefaults( | 
| chrome::kDataScheme, new net::DataProtocolHandler()); | 
| DCHECK(set_protocol); | 
| #if defined(OS_CHROMEOS) | 
| -  if (!is_incognito()) { | 
| +  if (!is_incognito() && profile_params_.get()) { | 
| set_protocol = job_factory->SetProtocolHandler( | 
| -        chrome::kDriveScheme, new drive::DriveProtocolHandler()); | 
| +        chrome::kDriveScheme, | 
| +        new drive::DriveProtocolHandler(profile_params_->profile)); | 
| DCHECK(set_protocol); | 
| } | 
| #endif  // defined(OS_CHROMEOS) | 
|  |