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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/operations/configure.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_system_provider/operations/configure.h" 5 #include "chrome/browser/chromeos/file_system_provider/operations/configure.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/common/extensions/api/file_system_provider.h" 8 #include "chrome/common/extensions/api/file_system_provider.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 18 matching lines...) Expand all
29 29
30 return SendEvent( 30 return SendEvent(
31 request_id, 31 request_id,
32 extensions::events::FILE_SYSTEM_PROVIDER_ON_CONFIGURE_REQUESTED, 32 extensions::events::FILE_SYSTEM_PROVIDER_ON_CONFIGURE_REQUESTED,
33 extensions::api::file_system_provider::OnConfigureRequested::kEventName, 33 extensions::api::file_system_provider::OnConfigureRequested::kEventName,
34 extensions::api::file_system_provider::OnConfigureRequested::Create( 34 extensions::api::file_system_provider::OnConfigureRequested::Create(
35 options)); 35 options));
36 } 36 }
37 37
38 void Configure::OnSuccess(int /* request_id */, 38 void Configure::OnSuccess(int /* request_id */,
39 scoped_ptr<RequestValue> /* result */, 39 std::unique_ptr<RequestValue> /* result */,
40 bool /* has_more */) { 40 bool /* has_more */) {
41 callback_.Run(base::File::FILE_OK); 41 callback_.Run(base::File::FILE_OK);
42 } 42 }
43 43
44 void Configure::OnError(int /* request_id */, 44 void Configure::OnError(int /* request_id */,
45 scoped_ptr<RequestValue> /* result */, 45 std::unique_ptr<RequestValue> /* result */,
46 base::File::Error error) { 46 base::File::Error error) {
47 callback_.Run(error); 47 callback_.Run(error);
48 } 48 }
49 49
50 } // namespace operations 50 } // namespace operations
51 } // namespace file_system_provider 51 } // namespace file_system_provider
52 } // namespace chromeos 52 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698