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

Unified Diff: ui/app_list/search/dictionary_data_store.cc

Issue 925783002: Split ValueSerializer into separate Serializer and Deserializer classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cpplint warnings. Created 5 years, 10 months 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 | « sync/internal_api/sync_encryption_handler_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search/dictionary_data_store.cc
diff --git a/ui/app_list/search/dictionary_data_store.cc b/ui/app_list/search/dictionary_data_store.cc
index b867be4d743468fb2de5ccb81fc96dbcaf25e8c6..45f53ca6edb58101530b4cc03cf1e5416218c06c 100644
--- a/ui/app_list/search/dictionary_data_store.cc
+++ b/ui/app_list/search/dictionary_data_store.cc
@@ -64,12 +64,12 @@ void DictionaryDataStore::ScheduleWrite() {
scoped_ptr<base::DictionaryValue> DictionaryDataStore::LoadOnBlockingPool() {
DCHECK(worker_pool_->RunsTasksOnCurrentThread());
- int error_code = JSONFileValueSerializer::JSON_NO_ERROR;
+ int error_code = JSONFileValueDeserializer::JSON_NO_ERROR;
std::string error_message;
- JSONFileValueSerializer serializer(data_file_);
- base::Value* value = serializer.Deserialize(&error_code, &error_message);
+ JSONFileValueDeserializer deserializer(data_file_);
+ base::Value* value = deserializer.Deserialize(&error_code, &error_message);
base::DictionaryValue* dict_value = NULL;
- if (error_code != JSONFileValueSerializer::JSON_NO_ERROR || !value ||
+ if (error_code != JSONFileValueDeserializer::JSON_NO_ERROR || !value ||
!value->GetAsDictionary(&dict_value) || !dict_value) {
return nullptr;
}
« no previous file with comments | « sync/internal_api/sync_encryption_handler_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698