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

Unified Diff: components/translate/content/renderer/data_file_renderer_cld_data_provider.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/translate/content/renderer/data_file_renderer_cld_data_provider.cc
diff --git a/components/translate/content/renderer/data_file_renderer_cld_data_provider.cc b/components/translate/content/renderer/data_file_renderer_cld_data_provider.cc
index 6bfb46efb4d1a724b7c77b3f5525f3c7ccf3e968..d05f3f1090af97eb59ce526a33f389726680f2d3 100644
--- a/components/translate/content/renderer/data_file_renderer_cld_data_provider.cc
+++ b/components/translate/content/renderer/data_file_renderer_cld_data_provider.cc
@@ -6,7 +6,9 @@
// This code isn't dead, even if it isn't currently being used. Please refer to:
// https://www.chromium.org/developers/how-tos/compact-language-detector-cld-data-source-configuration
-#include "data_file_renderer_cld_data_provider.h"
+#include "components/translate/content/renderer/data_file_renderer_cld_data_provider.h"
+
+#include <utility>
#include "base/files/file.h"
#include "base/files/memory_mapped_file.h"
@@ -92,7 +94,7 @@ void DataFileRendererCldDataProvider::LoadCldData(base::File file,
// mmap the file
g_cld_mmap.Get().value = new base::MemoryMappedFile();
- bool initialized = g_cld_mmap.Get().value->Initialize(file.Pass());
+ bool initialized = g_cld_mmap.Get().value->Initialize(std::move(file));
if (!initialized) {
LOG(ERROR) << "mmap initialization failed";
delete g_cld_mmap.Get().value;
« no previous file with comments | « components/test_runner/web_test_interfaces.cc ('k') | components/translate/core/browser/translate_ui_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698