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

Unified Diff: chrome/browser/apps/drive/drive_app_converter.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/apps/drive/drive_app_converter.cc
diff --git a/chrome/browser/apps/drive/drive_app_converter.cc b/chrome/browser/apps/drive/drive_app_converter.cc
index fb20f057eb5ec0323c771dd3ae4bc703c84b0826..40e28d279c4c242baa591caeb57cf1d708c78edf 100644
--- a/chrome/browser/apps/drive/drive_app_converter.cc
+++ b/chrome/browser/apps/drive/drive_app_converter.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/apps/drive/drive_app_converter.h"
#include <stddef.h>
-
#include <algorithm>
#include <set>
+#include <utility>
#include "base/callback_helpers.h"
#include "base/logging.h"
@@ -60,7 +60,7 @@ class DriveAppConverter::IconFetcher : public net::URLFetcherDelegate,
// net::URLFetcherDelegate overrides:
void OnURLFetchComplete(const net::URLFetcher* source) override {
CHECK_EQ(fetcher_.get(), source);
- scoped_ptr<net::URLFetcher> fetcher(fetcher_.Pass());
+ scoped_ptr<net::URLFetcher> fetcher(std::move(fetcher_));
if (!fetcher->GetStatus().is_success() ||
fetcher->GetResponseCode() != net::HTTP_OK) {

Powered by Google App Engine
This is Rietveld 408576698