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

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

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 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 // This file provides miscellaneous API functions, which don't belong to 5 // This file provides miscellaneous API functions, which don't belong to
6 // other files. 6 // other files.
7 7
8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.requestWebStoreAccessToken", 109 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.requestWebStoreAccessToken",
110 FILEMANAGERPRIVATE_REQUESTWEBSTOREACCESSTOKEN); 110 FILEMANAGERPRIVATE_REQUESTWEBSTOREACCESSTOKEN);
111 111
112 FileManagerPrivateRequestWebStoreAccessTokenFunction(); 112 FileManagerPrivateRequestWebStoreAccessTokenFunction();
113 113
114 protected: 114 protected:
115 ~FileManagerPrivateRequestWebStoreAccessTokenFunction() override; 115 ~FileManagerPrivateRequestWebStoreAccessTokenFunction() override;
116 bool RunAsync() override; 116 bool RunAsync() override;
117 117
118 private: 118 private:
119 scoped_ptr<google_apis::AuthServiceInterface> auth_service_; 119 std::unique_ptr<google_apis::AuthServiceInterface> auth_service_;
120 120
121 void OnAccessTokenFetched(google_apis::DriveApiErrorCode code, 121 void OnAccessTokenFetched(google_apis::DriveApiErrorCode code,
122 const std::string& access_token); 122 const std::string& access_token);
123 }; 123 };
124 124
125 class FileManagerPrivateGetProfilesFunction 125 class FileManagerPrivateGetProfilesFunction
126 : public ChromeSyncExtensionFunction { 126 : public ChromeSyncExtensionFunction {
127 public: 127 public:
128 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getProfiles", 128 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getProfiles",
129 FILEMANAGERPRIVATE_GETPROFILES); 129 FILEMANAGERPRIVATE_GETPROFILES);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 void OnCompleted(base::File::Error result); 265 void OnCompleted(base::File::Error result);
266 266
267 const ChromeExtensionFunctionDetails chrome_details_; 267 const ChromeExtensionFunctionDetails chrome_details_;
268 DISALLOW_COPY_AND_ASSIGN( 268 DISALLOW_COPY_AND_ASSIGN(
269 FileManagerPrivateInternalExecuteCustomActionFunction); 269 FileManagerPrivateInternalExecuteCustomActionFunction);
270 }; 270 };
271 271
272 } // namespace extensions 272 } // namespace extensions
273 273
274 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 274 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698