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

Unified Diff: components/sync_driver/sync_stopped_reporter.h

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback 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
« no previous file with comments | « components/sync_driver/sync_service.h ('k') | components/sync_driver/ui_data_type_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_stopped_reporter.h
diff --git a/components/sync_driver/sync_stopped_reporter.h b/components/sync_driver/sync_stopped_reporter.h
index c7e2d1d648932b2e61aceea82c2b328c1ec4c178..0d527c8d4c4bb88043457dab9d3f53a0e11c7903 100644
--- a/components/sync_driver/sync_stopped_reporter.h
+++ b/components/sync_driver/sync_stopped_reporter.h
@@ -5,11 +5,11 @@
#ifndef COMPONENTS_SYNC_DRIVER_SYNC_STOPPED_REPORTER_H_
#define COMPONENTS_SYNC_DRIVER_SYNC_STOPPED_REPORTER_H_
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/timer/timer.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -70,7 +70,7 @@ class SyncStoppedReporter : public net::URLFetcherDelegate {
scoped_refptr<net::URLRequestContextGetter> request_context_;
// The current URLFetcher. Null unless a request is in progress.
- scoped_ptr<net::URLFetcher> fetcher_;
+ std::unique_ptr<net::URLFetcher> fetcher_;
// A callback for request completion or timeout.
ResultCallback callback_;
« no previous file with comments | « components/sync_driver/sync_service.h ('k') | components/sync_driver/ui_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698