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

Unified Diff: chrome/browser/safe_browsing/protocol_parser.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/safe_browsing/protocol_parser.cc
diff --git a/chrome/browser/safe_browsing/protocol_parser.cc b/chrome/browser/safe_browsing/protocol_parser.cc
index fb24ffb89e55ab1a7aa55752293768e4b023dd3d..398426c451817dd66e22fa9e43ccacd158745551 100644
--- a/chrome/browser/safe_browsing/protocol_parser.cc
+++ b/chrome/browser/safe_browsing/protocol_parser.cc
@@ -6,8 +6,11 @@
// TODOv3(shess): Review these changes carefully.
+#include "chrome/browser/safe_browsing/protocol_parser.h"
+
#include <stdint.h>
#include <stdlib.h>
+#include <utility>
#include "base/format_macros.h"
#include "base/logging.h"
@@ -18,7 +21,6 @@
#include "base/sys_byteorder.h"
#include "base/time/time.h"
#include "build/build_config.h"
-#include "chrome/browser/safe_browsing/protocol_parser.h"
#include "chrome/browser/safe_browsing/safe_browsing_util.h"
namespace safe_browsing {
@@ -368,7 +370,7 @@ bool ParseChunk(const char* data,
if (!chunk->ParseFrom(reinterpret_cast<const unsigned char*>(p), l))
return false;
- chunks->push_back(chunk.Pass());
+ chunks->push_back(std::move(chunk));
}
DCHECK(reader.empty());

Powered by Google App Engine
This is Rietveld 408576698