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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2565283002: Fix webkitGetEntry for non-native files. (Closed)
Patch Set: Rebased. Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 2491 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 // Grant the permission iff the ID is valid. 2502 // Grant the permission iff the ID is valid.
2503 policy->GrantReadFileSystem(renderer_id, filesystem_id); 2503 policy->GrantReadFileSystem(renderer_id, filesystem_id);
2504 } 2504 }
2505 2505
2506 // Note: We are using the origin URL provided by the sender here. It may be 2506 // Note: We are using the origin URL provided by the sender here. It may be
2507 // different from the receiver's. 2507 // different from the receiver's.
2508 file_system_file.url = 2508 file_system_file.url =
2509 GURL(storage::GetIsolatedFileSystemRootURIString( 2509 GURL(storage::GetIsolatedFileSystemRootURIString(
2510 file_system_url.origin(), filesystem_id, std::string()) 2510 file_system_url.origin(), filesystem_id, std::string())
2511 .append(register_name)); 2511 .append(register_name));
2512 file_system_file.filesystem_id = filesystem_id;
2512 } 2513 }
2513 } 2514 }
2514 2515
2515 } // namespace content 2516 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698