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

Unified Diff: chrome/browser/chromeos/extensions/file_system_provider/provider_function.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/extensions/file_system_provider/provider_function.h
diff --git a/chrome/browser/chromeos/extensions/file_system_provider/provider_function.h b/chrome/browser/chromeos/extensions/file_system_provider/provider_function.h
index 040fdac05b318c4032fd53a021ec078453ea86eb..b297f1bbb682982e42f265412838af93eccd5ade 100644
--- a/chrome/browser/chromeos/extensions/file_system_provider/provider_function.h
+++ b/chrome/browser/chromeos/extensions/file_system_provider/provider_function.h
@@ -5,10 +5,10 @@
#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_PROVIDER_FUNCTION_H_
#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_PROVIDER_FUNCTION_H_
+#include <memory>
#include <string>
#include "base/files/file.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/common/extensions/api/file_system_provider.h"
@@ -60,7 +60,7 @@ class FileSystemProviderInternalFunction : public ChromeSyncExtensionFunction {
// Rejects the request and sets a response for this API function. Returns true
// on success, and false on failure.
bool RejectRequest(
- scoped_ptr<chromeos::file_system_provider::RequestValue> value,
+ std::unique_ptr<chromeos::file_system_provider::RequestValue> value,
base::File::Error error);
// Fulfills the request with parsed arguments of this API function
@@ -68,7 +68,7 @@ class FileSystemProviderInternalFunction : public ChromeSyncExtensionFunction {
// If |has_more| is set to true, then the function will be called again for
// this request. Returns true on success, and false on failure.
bool FulfillRequest(
- scoped_ptr<chromeos::file_system_provider::RequestValue> value,
+ std::unique_ptr<chromeos::file_system_provider::RequestValue> value,
bool has_more);
// Subclasses implement this for their functionality.

Powered by Google App Engine
This is Rietveld 408576698