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

Unified Diff: components/search_engines/template_url_fetcher_unittest.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/search_engines/template_url_fetcher_unittest.cc
diff --git a/components/search_engines/template_url_fetcher_unittest.cc b/components/search_engines/template_url_fetcher_unittest.cc
index 1dd5c5913657233d5d3a488867cd7e5ec3fdea7a..0ceed62941867ff8cd4ac3605189a1753663b1b6 100644
--- a/components/search_engines/template_url_fetcher_unittest.cc
+++ b/components/search_engines/template_url_fetcher_unittest.cc
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stddef.h>
+#include "components/search_engines/template_url_fetcher.h"
+#include <stddef.h>
#include <string>
+#include <utility>
#include "base/callback_helpers.h"
#include "base/files/file_util.h"
@@ -16,7 +18,6 @@
#include "chrome/browser/search_engines/template_url_service_test_util.h"
#include "chrome/test/base/testing_profile.h"
#include "components/search_engines/template_url.h"
-#include "components/search_engines/template_url_fetcher.h"
#include "components/search_engines/template_url_service.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
@@ -123,7 +124,7 @@ void TemplateURLFetcherTest::DestroyedCallback() {
void TemplateURLFetcherTest::ConfirmAddSearchProvider(
base::ScopedClosureRunner* callback_destruction_notifier,
scoped_ptr<TemplateURL> template_url) {
- last_callback_template_url_ = template_url.Pass();
+ last_callback_template_url_ = std::move(template_url);
add_provider_called_++;
}
« no previous file with comments | « components/search_engines/template_url_fetcher.cc ('k') | components/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698