diff options
author | dcheng <dcheng@chromium.org> | 2015-12-18 09:48:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-18 17:48:52 +0000 |
commit | e59eca16010c109a5e3e4922189c8b264d34caa9 (patch) | |
tree | 838815399c6364a99a465938df9978aeaf75c766 /extensions/common/event_matcher.cc | |
parent | 5100baf1eac806abbdaaf8002887aacf652f34e5 (diff) | |
download | chromium_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/common/event_matcher.cc')
-rw-r--r-- | extensions/common/event_matcher.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/extensions/common/event_matcher.cc b/extensions/common/event_matcher.cc index a5e6fc5..05dfdd8 100644 --- a/extensions/common/event_matcher.cc +++ b/extensions/common/event_matcher.cc @@ -2,10 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/callback.h" - #include "extensions/common/event_matcher.h" +#include <utility> + +#include "base/callback.h" #include "extensions/common/event_filtering_info.h" namespace { @@ -19,9 +20,7 @@ const char kEventFilterServiceTypeKey[] = "serviceType"; EventMatcher::EventMatcher(scoped_ptr<base::DictionaryValue> filter, int routing_id) - : filter_(filter.Pass()), - routing_id_(routing_id) { -} + : filter_(std::move(filter)), routing_id_(routing_id) {} EventMatcher::~EventMatcher() { } |