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

Unified Diff: chrome/browser/android/bookmarks/partner_bookmarks_shim.cc

Issue 2816513002: Revert of Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: Created 3 years, 8 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 | « cc/test/layer_tree_json_parser.cc ('k') | chrome/browser/android/vr_shell/gltf_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/bookmarks/partner_bookmarks_shim.cc
diff --git a/chrome/browser/android/bookmarks/partner_bookmarks_shim.cc b/chrome/browser/android/bookmarks/partner_bookmarks_shim.cc
index bd15315a24d0f70f16b61749fd1173554ef3132f..6b5a706d777f6873c24f9f25518ec8f2341c690a 100644
--- a/chrome/browser/android/bookmarks/partner_bookmarks_shim.cc
+++ b/chrome/browser/android/bookmarks/partner_bookmarks_shim.cc
@@ -253,7 +253,7 @@
for (base::ListValue::const_iterator it = list->begin();
it != list->end(); ++it) {
const base::DictionaryValue* dict = NULL;
- if (!it->GetAsDictionary(&dict)) {
+ if (!*it || !(*it)->GetAsDictionary(&dict)) {
NOTREACHED();
continue;
}
« no previous file with comments | « cc/test/layer_tree_json_parser.cc ('k') | chrome/browser/android/vr_shell/gltf_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698