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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.h

Issue 10692146: Fix more incorrect usage of BrowserContext on the FILE thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix yet another misuse Created 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_private_api.h
===================================================================
--- chrome/browser/chromeos/extensions/file_browser_private_api.h (revision 145967)
+++ chrome/browser/chromeos/extensions/file_browser_private_api.h (working copy)
@@ -51,7 +51,10 @@
void RespondSuccessOnUIThread(const std::string& name,
const GURL& root_path);
void RespondFailedOnUIThread(base::PlatformFileError error_code);
- void RequestOnFileThread(const GURL& source_url, int child_id);
+ void RequestOnFileThread(
+ scoped_refptr<fileapi::FileSystemContext> file_system_context,
+ const GURL& source_url,
+ int child_id);
};
// Implements the chrome.fileBrowserPrivate.addFileWatch method.
@@ -68,10 +71,12 @@
virtual bool RunImpl() OVERRIDE;
private:
- bool GetLocalFilePath(const GURL& file_url, FilePath* local_path,
- FilePath* virtual_path);
+ bool GetLocalFilePath(
+ scoped_refptr<fileapi::FileSystemContext> file_system_context,
+ const GURL& file_url, FilePath* local_path, FilePath* virtual_path);
void RespondOnUIThread(bool success);
void RunFileWatchOperationOnFileThread(
+ scoped_refptr<fileapi::FileSystemContext> file_system_context,
scoped_refptr<FileBrowserEventRouter> event_router,
const GURL& file_url,
const std::string& extension_id);
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698