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

Unified Diff: chrome/browser/extensions/extension_local_filesystem_apitest.cc

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix memory leaks in tests Created 8 years, 10 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/extensions/extension_local_filesystem_apitest.cc
===================================================================
--- chrome/browser/extensions/extension_local_filesystem_apitest.cc (revision 122721)
+++ chrome/browser/extensions/extension_local_filesystem_apitest.cc (working copy)
@@ -8,6 +8,8 @@
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_mount_point_provider.h"
+using content::BrowserContext;
+
#if defined(OS_CHROMEOS)
class FileSystemExtensionApiTest : public ExtensionApiTest {
@@ -21,7 +23,8 @@
void AddTmpMountPoint() {
// Add tmp mount point.
fileapi::ExternalFileSystemMountPointProvider* provider =
- browser()->profile()->GetFileSystemContext()->external_provider();
+ BrowserContext::GetFileSystemContext(browser()->profile())->
+ external_provider();
provider->AddMountPoint(test_mount_point_);
}
« no previous file with comments | « chrome/browser/extensions/extension_file_browser_private_apitest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698