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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 11785018: drive: Add Profile* as a member of DriveProtocolHandler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Replace the initialization in profile_io_data. Use forward declaration instead of direct include. Created 7 years, 11 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/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 7d6f2a0fa55281ecb459a4eb5ccdba83955ef172..8f7a4b7380d5562a2fd300361157514330f490e4 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -645,8 +645,10 @@ void ProfileIOData::SetUpJobFactoryDefaults(
DCHECK(set_protocol);
#if defined(OS_CHROMEOS)
if (!is_incognito()) {
+ Profile* profile = (Profile*) profile_params_->profile;
+
set_protocol = job_factory->SetProtocolHandler(
- chrome::kDriveScheme, new drive::DriveProtocolHandler());
+ chrome::kDriveScheme, new drive::DriveProtocolHandler(profile));
DCHECK(set_protocol);
}
#endif // defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698