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

Unified Diff: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc

Issue 1865213004: Convert //chrome/browser/ui 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/ui/webui/chromeos/drive_internals_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
index 6fdf338ea99c76f429069be562eac0aa5941628f..21dcbb6602674048e8ea317bcc70a30b7f457e17 100644
--- a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
@@ -260,12 +260,13 @@ class DriveInternalsWebUIHandler : public content::WebUIMessageHandler {
// Called when GetResourceEntryByPath() is complete.
void OnGetResourceEntryByPath(const base::FilePath& path,
drive::FileError error,
- scoped_ptr<drive::ResourceEntry> entry);
+ std::unique_ptr<drive::ResourceEntry> entry);
// Called when ReadDirectoryByPath() is complete.
- void OnReadDirectoryByPath(const base::FilePath& parent_path,
- drive::FileError error,
- scoped_ptr<drive::ResourceEntryVector> entries);
+ void OnReadDirectoryByPath(
+ const base::FilePath& parent_path,
+ drive::FileError error,
+ std::unique_ptr<drive::ResourceEntryVector> entries);
// Called as the iterator for DebugInfoCollector::IterateFileCache().
void UpdateCacheEntry(const std::string& local_id,
@@ -277,12 +278,11 @@ class DriveInternalsWebUIHandler : public content::WebUIMessageHandler {
// Called when GetAboutResource() call to DriveService is complete.
void OnGetAboutResource(
google_apis::DriveApiErrorCode status,
- scoped_ptr<google_apis::AboutResource> about_resource);
+ std::unique_ptr<google_apis::AboutResource> about_resource);
// Called when GetAppList() call to DriveService is complete.
- void OnGetAppList(
- google_apis::DriveApiErrorCode status,
- scoped_ptr<google_apis::AppList> app_list);
+ void OnGetAppList(google_apis::DriveApiErrorCode status,
+ std::unique_ptr<google_apis::AppList> app_list);
// Callback for DebugInfoCollector::GetMetadata for local update.
void OnGetFilesystemMetadataForLocal(
@@ -313,7 +313,7 @@ class DriveInternalsWebUIHandler : public content::WebUIMessageHandler {
void DriveInternalsWebUIHandler::OnGetAboutResource(
google_apis::DriveApiErrorCode status,
- scoped_ptr<google_apis::AboutResource> parsed_about_resource) {
+ std::unique_ptr<google_apis::AboutResource> parsed_about_resource) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (status != google_apis::HTTP_SUCCESS) {
@@ -337,7 +337,7 @@ void DriveInternalsWebUIHandler::OnGetAboutResource(
void DriveInternalsWebUIHandler::OnGetAppList(
google_apis::DriveApiErrorCode status,
- scoped_ptr<google_apis::AppList> parsed_app_list) {
+ std::unique_ptr<google_apis::AppList> parsed_app_list) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (status != google_apis::HTTP_SUCCESS) {
@@ -804,7 +804,7 @@ void DriveInternalsWebUIHandler::OnGetGCacheContents(
void DriveInternalsWebUIHandler::OnGetResourceEntryByPath(
const base::FilePath& path,
drive::FileError error,
- scoped_ptr<drive::ResourceEntry> entry) {
+ std::unique_ptr<drive::ResourceEntry> entry) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (error == drive::FILE_ERROR_OK) {
@@ -817,7 +817,7 @@ void DriveInternalsWebUIHandler::OnGetResourceEntryByPath(
void DriveInternalsWebUIHandler::OnReadDirectoryByPath(
const base::FilePath& parent_path,
drive::FileError error,
- scoped_ptr<drive::ResourceEntryVector> entries) {
+ std::unique_ptr<drive::ResourceEntryVector> entries) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (error == drive::FILE_ERROR_OK) {

Powered by Google App Engine
This is Rietveld 408576698