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

Unified Diff: chrome/browser/ui/webui/ntp/most_visited_handler.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review Created 9 years, 4 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
Index: chrome/browser/ui/webui/ntp/most_visited_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/most_visited_handler.cc b/chrome/browser/ui/webui/ntp/most_visited_handler.cc
index 04fc313fe7f37d1cc554a136052016e4497d9ba8..0d4e94dbcf03f96fc9f0095d0ccbe6f22e1427f5 100644
--- a/chrome/browser/ui/webui/ntp/most_visited_handler.cc
+++ b/chrome/browser/ui/webui/ntp/most_visited_handler.cc
@@ -235,7 +235,7 @@ bool MostVisitedHandler::GetPinnedURLAtIndex(int index,
it != pinned_urls->end_keys(); ++it) {
Value* value;
if (pinned_urls->GetWithoutPathExpansion(*it, &value)) {
- if (!value->IsType(DictionaryValue::TYPE_DICTIONARY)) {
+ if (!value->IsDictionary()) {
// Moved on to TopSites and now going back.
DictionaryPrefUpdate update(prefs, prefs::kNTPMostVisitedPinnedURLs);
update.Get()->Clear();

Powered by Google App Engine
This is Rietveld 408576698