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

Unified Diff: chrome/browser/history/history_extension_api.cc

Issue 10897015: Merge 151183 - Every VisitItem returned by chrome.history.getVisits has link transition (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1229_12/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_extension_api.cc
===================================================================
--- chrome/browser/history/history_extension_api.cc (revision 153742)
+++ chrome/browser/history/history_extension_api.cc (working copy)
@@ -68,12 +68,8 @@
new double(MilliSecondsFromTime(row.visit_time)));
visit_item->referring_visit_id = base::Int64ToString(row.referring_visit);
- const char* trans =
- content::PageTransitionGetCoreTransitionString(row.transition);
- DCHECK(trans) << "Invalid transition.";
-
VisitItem::Transition transition = VisitItem::TRANSITION_LINK;
- switch (row.transition) {
+ switch (row.transition & content::PAGE_TRANSITION_CORE_MASK) {
case content::PAGE_TRANSITION_LINK:
transition = VisitItem::TRANSITION_LINK;
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698