From e86e2bedbf7122e0c74b3eb748203e0d8fd04572 Mon Sep 17 00:00:00 2001 From: "nhiroki@chromium.org" Date: Fri, 30 Aug 2013 11:20:39 +0000 Subject: SyncFS: Reorder initialization sequence of SyncFileSystemService Moves initialization part for SyncFileSystemService from SyncFileSystem's API handling layer (sync_file_system_api.{cc,h}) to SyncFileSystemBackend so that non-chrome API can start SyncFileSystemService. This is a preparation patch for supporting window.resolveLocalFileSystemURL() on SyncFileSystem. See the bug issue for more details. BUG=177137 TEST=unit_tests TEST=browser_tests --gtest_filter=SyncFileSystemApiTest.* Review URL: https://chromiumcodereview.appspot.com/22810002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220552 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chrome_content_browser_client.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '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 2d60399f..d8f69a6 100644 --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc @@ -2422,7 +2422,9 @@ void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( additional_backends->push_back(backend); #endif - additional_backends->push_back(new sync_file_system::SyncFileSystemBackend()); + additional_backends->push_back( + new sync_file_system::SyncFileSystemBackend( + Profile::FromBrowserContext(browser_context))); } #if defined(OS_POSIX) && !defined(OS_MACOSX) -- cgit v1.1