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

Unified Diff: third_party/libaddressinput/chromium/chrome_storage_impl.cc

Issue 2516363005: Inline StringValue into base::Value (Closed)
Patch Set: GetString by ref and TestStringValue Fix Created 4 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: third_party/libaddressinput/chromium/chrome_storage_impl.cc
diff --git a/third_party/libaddressinput/chromium/chrome_storage_impl.cc b/third_party/libaddressinput/chromium/chrome_storage_impl.cc
index e901c2fdfe5c0f43c8844baa830adfa3c78c8af3..de71599139ce8680638f23b40d735c1d7647d775 100644
--- a/third_party/libaddressinput/chromium/chrome_storage_impl.cc
+++ b/third_party/libaddressinput/chromium/chrome_storage_impl.cc
@@ -26,7 +26,7 @@ void ChromeStorageImpl::Put(const std::string& key, std::string* data) {
std::unique_ptr<std::string> owned_data(data);
std::unique_ptr<base::StringValue> string_value(
new base::StringValue(std::string()));
- string_value->GetString()->swap(*owned_data);
+ string_value->GetString().swap(*owned_data);
backing_store_->SetValue(key, std::move(string_value),
WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
}
« chromeos/network/network_state_unittest.cc ('K') | « chromeos/network/network_state_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698