summaryrefslogtreecommitdiffstats
path: root/extensions/browser/error_map_unittest.cc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-12-18 09:48:00 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-18 17:48:52 +0000
commite59eca16010c109a5e3e4922189c8b264d34caa9 (patch)
tree838815399c6364a99a465938df9978aeaf75c766 /extensions/browser/error_map_unittest.cc
parent5100baf1eac806abbdaaf8002887aacf652f34e5 (diff)
downloadchromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.zip
chromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.tar.gz
chromium_src-e59eca16010c109a5e3e4922189c8b264d34caa9.tar.bz2
Convert Pass()→std::move() in //extensions
BUG=557422 Review URL: https://codereview.chromium.org/1537893002 Cr-Commit-Position: refs/heads/master@{#366120}
Diffstat (limited to 'extensions/browser/error_map_unittest.cc')
-rw-r--r--extensions/browser/error_map_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/browser/error_map_unittest.cc b/extensions/browser/error_map_unittest.cc
index 07c6f58..0aa6385 100644
--- a/extensions/browser/error_map_unittest.cc
+++ b/extensions/browser/error_map_unittest.cc
@@ -4,6 +4,8 @@
#include "extensions/browser/error_map.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
@@ -150,7 +152,7 @@ TEST_F(ErrorMapUnitTest, DuplicateErrorsAreReplaced) {
scoped_ptr<ExtensionError> runtime_error2 =
CreateNewRuntimeError(kId, base::UintToString(1u));
const ExtensionError* weak_error = runtime_error2.get();
- ASSERT_TRUE(errors_.AddError(runtime_error2.Pass()));
+ ASSERT_TRUE(errors_.AddError(std::move(runtime_error2)));
// We should only have three errors stored, since two of the four reported
// were identical, and the older should have been replaced.