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

Unified Diff: content/browser/service_worker/service_worker_internals_ui.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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: content/browser/service_worker/service_worker_internals_ui.cc
diff --git a/content/browser/service_worker/service_worker_internals_ui.cc b/content/browser/service_worker/service_worker_internals_ui.cc
index cf46466c12d01a3631e07ffc1fe1b33e33014480..ae899dca58d44108f095e745f2083862967ae021 100644
--- a/content/browser/service_worker/service_worker_internals_ui.cc
+++ b/content/browser/service_worker/service_worker_internals_ui.cc
@@ -5,8 +5,8 @@
#include "content/browser/service_worker/service_worker_internals_ui.h"
#include <stdint.h>
-
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -431,7 +431,8 @@ void ServiceWorkerInternalsUI::AddContextFromStoragePartition(
scoped_ptr<PartitionObserver> new_observer(
new PartitionObserver(partition_id, web_ui()));
context->AddObserver(new_observer.get());
- observers_.set(reinterpret_cast<uintptr_t>(partition), new_observer.Pass());
+ observers_.set(reinterpret_cast<uintptr_t>(partition),
+ std::move(new_observer));
}
BrowserThread::PostTask(

Powered by Google App Engine
This is Rietveld 408576698