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

Unified Diff: chrome/browser/resources/google_now/utility.js

Issue 154653003: Count All Cards for Explanatory Link Support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « chrome/browser/resources/google_now/cards_unittest.gtestjs ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/google_now/utility.js
diff --git a/chrome/browser/resources/google_now/utility.js b/chrome/browser/resources/google_now/utility.js
index afa74775b1bd5a7019e45520408e73ce2403ed56..904da6b9cd885dd642262a30d114b1cb604b73e7 100644
--- a/chrome/browser/resources/google_now/utility.js
+++ b/chrome/browser/resources/google_now/utility.js
@@ -64,10 +64,16 @@ console.log = function() {
}();
/**
- * Location Card Storage.
+ * Explanation Card Storage.
*/
-if (localStorage['locationCardsShown'] === undefined)
- localStorage['locationCardsShown'] = 0;
+if (localStorage['explanatoryCardsShown'] === undefined)
+ localStorage['explanatoryCardsShown'] = 0;
+
+/**
+ * Location Card Count Cleanup.
+ */
+if (localStorage.locationCardsShown !== undefined)
+ localStorage.removeItem('locationCardsShown');
/**
* Builds an error object with a message that may be sent to the server.
« no previous file with comments | « chrome/browser/resources/google_now/cards_unittest.gtestjs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698