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

Unified Diff: chrome/browser/extensions/api/preference/preference_helpers.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/extensions/api/preference/preference_helpers.cc
diff --git a/chrome/browser/extensions/api/preference/preference_helpers.cc b/chrome/browser/extensions/api/preference/preference_helpers.cc
index 7993e39ccef3e805c82762bf87c6f09f487f1bcb..55128f0c51061d025d1aae800e6b3b026fcf0ca0 100644
--- a/chrome/browser/extensions/api/preference/preference_helpers.cc
+++ b/chrome/browser/extensions/api/preference/preference_helpers.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/extensions/api/preference/preference_helpers.h"
+#include <utility>
+
#include "base/json/json_writer.h"
#include "base/prefs/pref_service.h"
#include "base/values.h"
@@ -127,9 +129,9 @@ void DispatchEventToExtensions(Profile* profile,
scoped_ptr<base::ListValue> args_copy(args->DeepCopy());
scoped_ptr<Event> event(
- new Event(histogram_value, event_name, args_copy.Pass()));
+ new Event(histogram_value, event_name, std::move(args_copy)));
event->restrict_to_browser_context = restrict_to_profile;
- router->DispatchEventToExtension(extension->id(), event.Pass());
+ router->DispatchEventToExtension(extension->id(), std::move(event));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698