Descriptiondrive: Add Profile* as a member of DriveProtocolHandler.
A Profile* can be passed to the constructor of DriveProtocolHandler and
the handler uses the given Profile* for processing the request.
This will help us adding unittests and introducting support for multiple profiles.
If the handler is constructed without Profile*, it will use the profile from
ProfileManager::GetDefaultProfile().
BUG=167249
TEST=unittests. try opening a URL of 'drive://' (e.g. HTML file stored in Google Drive) on Chrome OS.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176062
Patch Set 1 #
Total comments: 4
Patch Set 2 : Replace the initialization in profile_io_data. Use forward declaration instead of direct include. #
Total comments: 2
Patch Set 3 : Use reinterpret_case. #
Total comments: 4
Patch Set 4 : partly addressed the comments. #Patch Set 5 : Add IsValidProfile check in DriveProtocolHandler. #
Total comments: 4
Patch Set 6 : Add/Restore necessary #include-s. #Patch Set 7 : Move IsValidCheck to GetSystemService to remove duplication. #
Total comments: 2
Patch Set 8 : Add availability check before initializing DriveProtocolHandler #
Messages
Total messages: 17 (0 generated)
|