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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_handler_api.cc

Issue 10694106: Added support for multiple parameters to Extension API callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced. Created 8 years, 5 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
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 "chrome/browser/chromeos/extensions/file_browser_handler_api.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_handler_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 new SelectFile::Result::Result()); 302 new SelectFile::Result::Result());
303 result->success = success; 303 result->success = success;
304 if (success) { 304 if (success) {
305 result->entry.reset(new FileEntryInfo()); 305 result->entry.reset(new FileEntryInfo());
306 result->entry->file_system_name = file_system_name; 306 result->entry->file_system_name = file_system_name;
307 result->entry->file_system_root = file_system_root.spec(); 307 result->entry->file_system_root = file_system_root.spec();
308 result->entry->file_full_path = "/" + virtual_path.value(); 308 result->entry->file_full_path = "/" + virtual_path.value();
309 result->entry->file_is_directory = false; 309 result->entry->file_is_directory = false;
310 } 310 }
311 311
312 result_.reset(SelectFile::Result::Create(*result)); 312 SetResult(SelectFile::Result::Create(*result));
313 SendResponse(true); 313 SendResponse(true);
314 } 314 }
315 315
316 FileSelector* FileHandlerSelectFileFunction::GetFileSelector() { 316 FileSelector* FileHandlerSelectFileFunction::GetFileSelector() {
317 FileSelector* result = file_selector_for_test_; 317 FileSelector* result = file_selector_for_test_;
318 if (result) { 318 if (result) {
319 result->set_function_for_test(this); 319 result->set_function_for_test(this);
320 return result; 320 return result;
321 } 321 }
322 return new FileSelectorImpl(this); 322 return new FileSelectorImpl(this);
323 } 323 }
324 324
325 FileSelector* FileHandlerSelectFileFunction::file_selector_for_test_ = NULL; 325 FileSelector* FileHandlerSelectFileFunction::file_selector_for_test_ = NULL;
326 326
327 bool FileHandlerSelectFileFunction::gesture_check_disabled_for_test_ = false; 327 bool FileHandlerSelectFileFunction::gesture_check_disabled_for_test_ = false;
328 328
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698