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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_util.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 break; 268 break;
269 } 269 }
270 } 270 }
271 271
272 base::FilePath GetLocalPathFromURL(content::RenderViewHost* render_view_host, 272 base::FilePath GetLocalPathFromURL(content::RenderViewHost* render_view_host,
273 Profile* profile, 273 Profile* profile,
274 const GURL& url) { 274 const GURL& url) {
275 DCHECK(render_view_host); 275 DCHECK(render_view_host);
276 DCHECK(profile); 276 DCHECK(profile);
277 277
278 scoped_refptr<fileapi::FileSystemContext> file_system_context = 278 scoped_refptr<storage::FileSystemContext> file_system_context =
279 util::GetFileSystemContextForRenderViewHost(profile, render_view_host); 279 util::GetFileSystemContextForRenderViewHost(profile, render_view_host);
280 280
281 const fileapi::FileSystemURL filesystem_url( 281 const storage::FileSystemURL filesystem_url(
282 file_system_context->CrackURL(url)); 282 file_system_context->CrackURL(url));
283 base::FilePath path; 283 base::FilePath path;
284 if (!chromeos::FileSystemBackend::CanHandleURL(filesystem_url)) 284 if (!chromeos::FileSystemBackend::CanHandleURL(filesystem_url))
285 return base::FilePath(); 285 return base::FilePath();
286 return filesystem_url.path(); 286 return filesystem_url.path();
287 } 287 }
288 288
289 void GetSelectedFileInfo(content::RenderViewHost* render_view_host, 289 void GetSelectedFileInfo(content::RenderViewHost* render_view_host,
290 Profile* profile, 290 Profile* profile,
291 const std::vector<GURL>& file_urls, 291 const std::vector<GURL>& file_urls,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 } 326 }
327 327
328 drive::EventLogger* GetLogger(Profile* profile) { 328 drive::EventLogger* GetLogger(Profile* profile) {
329 drive::DriveIntegrationService* service = 329 drive::DriveIntegrationService* service =
330 drive::DriveIntegrationServiceFactory::FindForProfile(profile); 330 drive::DriveIntegrationServiceFactory::FindForProfile(profile);
331 return service ? service->event_logger() : NULL; 331 return service ? service->event_logger() : NULL;
332 } 332 }
333 333
334 } // namespace util 334 } // namespace util
335 } // namespace file_manager 335 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698