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

Unified Diff: content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc

Issue 33053002: Pepper: Move FileIO host from renderer to browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 1 month 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: content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
diff --git a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
index 22302f3fe2eacf89f3a93b6ca66a46aa6a308d04..f8417c001a37b51632ceb2c51ce2028500511d72 100644
--- a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
+++ b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
@@ -27,12 +27,10 @@ namespace {
scoped_refptr<fileapi::FileSystemContext>
GetFileSystemContextFromRenderId(int render_process_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- RenderProcessHost* render_process_host =
- RenderProcessHost::FromID(render_process_id);
- if (!render_process_host)
+ RenderProcessHost* host = RenderProcessHost::FromID(render_process_id);
+ if (!host)
return NULL;
- StoragePartition* storage_partition =
- render_process_host->GetStoragePartition();
+ StoragePartition* storage_partition = host->GetStoragePartition();
if (!storage_partition)
return NULL;
return storage_partition->GetFileSystemContext();
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_file_ref_host.cc ('k') | content/browser/renderer_host/pepper/quota_file_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698