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

Unified Diff: chrome/browser/chromeos/fileapi/external_file_url_request_job.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
diff --git a/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc b/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
index c40bb347ec431230777bb102ce6c79a7e8c17dc4..ce19a3ed99ef2a2263ff1c366b7a34d34ddb5037 100644
--- a/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
+++ b/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
@@ -49,7 +49,7 @@ class URLHelper {
// The scoped pointer to control lifetime of the instance itself. The pointer
// is passed to callback functions and binds the lifetime of the instance to
// the callback's lifetime.
- typedef scoped_ptr<URLHelper> Lifetime;
+ typedef std::unique_ptr<URLHelper> Lifetime;
URLHelper(void* profile_id,
const GURL& url,
@@ -140,7 +140,7 @@ class URLHelper {
const GURL url_;
const ExternalFileURLRequestJob::HelperCallback callback_;
scoped_refptr<storage::FileSystemContext> file_system_context_;
- scoped_ptr<ExternalFileURLRequestJob::IsolatedFileSystemScope>
+ std::unique_ptr<ExternalFileURLRequestJob::IsolatedFileSystemScope>
isolated_file_system_scope_;
storage::FileSystemURL file_system_url_;
std::string mime_type_;
@@ -233,7 +233,7 @@ void ExternalFileURLRequestJob::StartAsync() {
void ExternalFileURLRequestJob::OnHelperResultObtained(
net::Error error,
const scoped_refptr<storage::FileSystemContext>& file_system_context,
- scoped_ptr<IsolatedFileSystemScope> isolated_file_system_scope,
+ std::unique_ptr<IsolatedFileSystemScope> isolated_file_system_scope,
const storage::FileSystemURL& file_system_url,
const std::string& mime_type) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);

Powered by Google App Engine
This is Rietveld 408576698