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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 client()->requestFileSystemAccessAsync( 154 client()->requestFileSystemAccessAsync(
155 context, 155 context,
156 ContentSettingCallbacks::create(std::move(allowed), std::move(denied))); 156 ContentSettingCallbacks::create(std::move(allowed), std::move(denied)));
157 } 157 }
158 158
159 void LocalFileSystem::fileSystemNotAvailable(ExecutionContext* context, 159 void LocalFileSystem::fileSystemNotAvailable(ExecutionContext* context,
160 CallbackWrapper* callbacks) { 160 CallbackWrapper* callbacks) {
161 context->postTask( 161 context->postTask(
162 BLINK_FROM_HERE, 162 BLINK_FROM_HERE,
163 createSameThreadTask(&reportFailure, passed(callbacks->release()), 163 createSameThreadTask(&reportFailure, WTF::passed(callbacks->release()),
164 FileError::kAbortErr)); 164 FileError::kAbortErr));
165 } 165 }
166 166
167 void LocalFileSystem::fileSystemNotAllowedInternal(ExecutionContext* context, 167 void LocalFileSystem::fileSystemNotAllowedInternal(ExecutionContext* context,
168 CallbackWrapper* callbacks) { 168 CallbackWrapper* callbacks) {
169 context->postTask( 169 context->postTask(
170 BLINK_FROM_HERE, 170 BLINK_FROM_HERE,
171 createSameThreadTask(&reportFailure, passed(callbacks->release()), 171 createSameThreadTask(&reportFailure, WTF::passed(callbacks->release()),
172 FileError::kAbortErr)); 172 FileError::kAbortErr));
173 } 173 }
174 174
175 void LocalFileSystem::fileSystemAllowedInternal(ExecutionContext* context, 175 void LocalFileSystem::fileSystemAllowedInternal(ExecutionContext* context,
176 FileSystemType type, 176 FileSystemType type,
177 CallbackWrapper* callbacks) { 177 CallbackWrapper* callbacks) {
178 WebFileSystem* fileSystem = getFileSystem(); 178 WebFileSystem* fileSystem = getFileSystem();
179 if (!fileSystem) { 179 if (!fileSystem) {
180 fileSystemNotAvailable(context, callbacks); 180 fileSystemNotAvailable(context, callbacks);
181 return; 181 return;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 LocalFileSystem::create(std::move(client))); 242 LocalFileSystem::create(std::move(client)));
243 } 243 }
244 244
245 void provideLocalFileSystemToWorker(WorkerClients* clients, 245 void provideLocalFileSystemToWorker(WorkerClients* clients,
246 std::unique_ptr<FileSystemClient> client) { 246 std::unique_ptr<FileSystemClient> client) {
247 clients->provideSupplement(LocalFileSystem::supplementName(), 247 clients->provideSupplement(LocalFileSystem::supplementName(),
248 LocalFileSystem::create(std::move(client))); 248 LocalFileSystem::create(std::move(client)));
249 } 249 }
250 250
251 } // namespace blink 251 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698