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

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

Issue 1556783002: Convert Pass()→std::move() for CrOS extension code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 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_misc.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 case SOURCE_NETWORK: 509 case SOURCE_NETWORK:
510 providing_extension->source = 510 providing_extension->source =
511 api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_NETWORK; 511 api::manifest_types::FILE_SYSTEM_PROVIDER_SOURCE_NETWORK;
512 break; 512 break;
513 } 513 }
514 providing_extensions.push_back(providing_extension); 514 providing_extensions.push_back(providing_extension);
515 } 515 }
516 516
517 return RespondNow(ArgumentList( 517 return RespondNow(ArgumentList(
518 api::file_manager_private::GetProvidingExtensions::Results::Create( 518 api::file_manager_private::GetProvidingExtensions::Results::Create(
519 providing_extensions).Pass())); 519 providing_extensions)));
520 } 520 }
521 521
522 FileManagerPrivateAddProvidedFileSystemFunction:: 522 FileManagerPrivateAddProvidedFileSystemFunction::
523 FileManagerPrivateAddProvidedFileSystemFunction() 523 FileManagerPrivateAddProvidedFileSystemFunction()
524 : chrome_details_(this) { 524 : chrome_details_(this) {
525 } 525 }
526 526
527 ExtensionFunction::ResponseAction 527 ExtensionFunction::ResponseAction
528 FileManagerPrivateAddProvidedFileSystemFunction::Run() { 528 FileManagerPrivateAddProvidedFileSystemFunction::Run() {
529 using extensions::api::file_manager_private::AddProvidedFileSystem::Params; 529 using extensions::api::file_manager_private::AddProvidedFileSystem::Params;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 base::File::Error result) { 688 base::File::Error result) {
689 if (result != base::File::FILE_OK) { 689 if (result != base::File::FILE_OK) {
690 Respond(Error("Failed to execute the action.")); 690 Respond(Error("Failed to execute the action."));
691 return; 691 return;
692 } 692 }
693 693
694 Respond(NoArguments()); 694 Respond(NoArguments());
695 } 695 }
696 696
697 } // namespace extensions 697 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698