Index: chrome/browser/sync/glue/typed_url_change_processor.cc |
=================================================================== |
--- chrome/browser/sync/glue/typed_url_change_processor.cc (revision 105162) |
+++ chrome/browser/sync/glue/typed_url_change_processor.cc (working copy) |
@@ -170,8 +170,8 @@ |
bool TypedUrlChangeProcessor::ShouldSyncVisit( |
history::URLVisitedDetails* details) { |
int typed_count = details->row.typed_count(); |
- PageTransition::Type transition = static_cast<PageTransition::Type>( |
- details->transition & PageTransition::CORE_MASK); |
+ content::PageTransition transition = static_cast<content::PageTransition>( |
+ details->transition & content::PAGE_TRANSITION_CORE_MASK); |
// Just use an ad-hoc criteria to determine whether to ignore this |
// notification. For most users, the distribution of visits is roughly a bell |
@@ -180,7 +180,7 @@ |
// suggestions. But there are relatively few URLs with > 10 visits, and those |
// tend to be more broadly distributed such that there's no need to sync up |
// every visit to preserve their relative ordering. |
- return (transition == PageTransition::TYPED && |
+ return (transition == content::PAGE_TRANSITION_TYPED && |
(typed_count < kTypedUrlVisitThrottleThreshold || |
(typed_count % kTypedUrlVisitThrottleMultiple) == 0)); |
} |
@@ -251,7 +251,7 @@ |
DCHECK(c == 0 || typed_url.visits(c) > typed_url.visits(c - 1)); |
added_visits.push_back(history::VisitInfo( |
base::Time::FromInternalValue(typed_url.visits(c)), |
- typed_url.visit_transitions(c))); |
+ content::PageTransitionFromInt(typed_url.visit_transitions(c)))); |
} |
pending_new_visits_.push_back( |