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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 18667002: Pass BrowserContext to drive::MountPointProviderDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 5abfa6ce2538a5c407410ced9a78e5d16d08ead3..438681c6de15edaaf2237a4cc952a031c8831400 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2306,9 +2306,8 @@ void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
}
void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
+ content::BrowserContext* browser_context,
const base::FilePath& storage_partition_path,
- quota::SpecialStoragePolicy* special_storage_policy,
- fileapi::ExternalMountPoints* external_mount_points,
ScopedVector<fileapi::FileSystemBackend>* additional_backends) {
#if !defined(OS_ANDROID)
base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool();
@@ -2318,11 +2317,13 @@ void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
MediaFileSystemBackend::kMediaTaskRunnerName)).get()));
#endif
#if defined(OS_CHROMEOS)
+ fileapi::ExternalMountPoints* external_mount_points =
+ content::BrowserContext::GetMountPoints(browser_context);
DCHECK(external_mount_points);
chromeos::FileSystemBackend* backend =
new chromeos::FileSystemBackend(
- new drive::FileSystemBackendDelegate(external_mount_points),
- special_storage_policy,
+ new drive::FileSystemBackendDelegate(browser_context),
+ browser_context->GetSpecialStoragePolicy(),
external_mount_points,
fileapi::ExternalMountPoints::GetSystemInstance());
backend->AddSystemMountPoints();
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/chromeos/drive/file_system_backend_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698