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

Unified Diff: net/sdch/sdch_owner.cc

Issue 1545233002: Convert Pass()→std::move() in //net (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
« no previous file with comments | « net/quic/test_tools/crypto_test_utils_chromium.cc ('k') | net/sdch/sdch_owner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/sdch/sdch_owner.cc
diff --git a/net/sdch/sdch_owner.cc b/net/sdch/sdch_owner.cc
index 954732a190f9eb0cb49f23638c28009e54163529..30b94767dbe4a9777c63a892111eacabd35bc162 100644
--- a/net/sdch/sdch_owner.cc
+++ b/net/sdch/sdch_owner.cc
@@ -4,6 +4,8 @@
#include "net/sdch/sdch_owner.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/debug/alias.h"
#include "base/logging.h"
@@ -103,7 +105,7 @@ void InitializePrefStore(WriteablePrefStore* store) {
empty_store->SetInteger(kVersionKey, kVersion);
empty_store->Set(kDictionariesKey,
make_scoped_ptr(new base::DictionaryValue));
- store->SetValue(kPreferenceName, empty_store.Pass(),
+ store->SetValue(kPreferenceName, std::move(empty_store),
WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
}
@@ -444,7 +446,7 @@ void SdchOwner::OnDictionaryFetched(base::Time last_used,
dictionary_description->SetInteger(kDictionaryUseCountKey, use_count);
dictionary_description->SetInteger(kDictionarySizeKey,
dictionary_text.size());
- pref_dictionary_map->Set(server_hash, dictionary_description.Pass());
+ pref_dictionary_map->Set(server_hash, std::move(dictionary_description));
load_times_[server_hash] = clock_->Now();
}
@@ -620,7 +622,7 @@ void SdchOwner::OnInitializationCompleted(bool succeeded) {
}
void SdchOwner::SetClockForTesting(scoped_ptr<base::Clock> clock) {
- clock_ = clock.Pass();
+ clock_ = std::move(clock);
}
int SdchOwner::GetDictionaryCountForTesting() const {
« no previous file with comments | « net/quic/test_tools/crypto_test_utils_chromium.cc ('k') | net/sdch/sdch_owner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698