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

Side by Side Diff: chrome/browser/chromeos/file_manager/filesystem_api_util.cc

Issue 300063006: Files.app: Let Files.app pass mutliple files to file handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/file_manager/filesystem_api_util.h" 5 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/chromeos/drive/file_errors.h" 10 #include "chrome/browser/chromeos/drive/file_errors.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 void IsNonNativeLocalPathDirectory( 82 void IsNonNativeLocalPathDirectory(
83 Profile* profile, 83 Profile* profile,
84 const base::FilePath& path, 84 const base::FilePath& path,
85 const base::Callback<void(bool)>& callback) { 85 const base::Callback<void(bool)>& callback) {
86 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 86 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
87 87
88 // TODO(kinaba): support other types of volumes besides Drive. 88 // TODO(kinaba): support other types of volumes besides Drive.
89 drive::util::CheckDirectoryExists( 89 drive::util::CheckDirectoryExists(
90 profile, 90 profile, path, base::Bind(&CheckDirectoryAfterDriveCheck, callback));
91 path,
92 base::Bind(&CheckDirectoryAfterDriveCheck, callback));
93 } 91 }
94 92
95 void PrepareNonNativeLocalPathWritableFile( 93 void PrepareNonNativeLocalPathWritableFile(
96 Profile* profile, 94 Profile* profile,
97 const base::FilePath& path, 95 const base::FilePath& path,
98 const base::Callback<void(bool)>& callback) { 96 const base::Callback<void(bool)>& callback) {
99 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 97 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
100 98
101 // TODO(kinaba): support other types of volumes besides Drive. 99 // TODO(kinaba): support other types of volumes besides Drive.
102 drive::util::PrepareWritableFileAndRun( 100 drive::util::PrepareWritableFileAndRun(
103 profile, 101 profile, path, base::Bind(&CheckWritableAfterDriveCheck, callback));
104 path,
105 base::Bind(&CheckWritableAfterDriveCheck, callback));
106 } 102 }
107 103
108 } // namespace util 104 } // namespace util
109 } // namespace file_manager 105 } // namespace file_manager
OLDNEW
« apps/launcher.cc ('K') | « chrome/browser/chromeos/file_manager/file_tasks.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698