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

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

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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/history/expire_history_backend.cc
diff --git a/chrome/browser/history/expire_history_backend.cc b/chrome/browser/history/expire_history_backend.cc
index 58eace87a3d2653f49d5756ba479d18e716a06f8..7c6de26fd1ad1202aae4c6440061edffe73bacd7 100644
--- a/chrome/browser/history/expire_history_backend.cc
+++ b/chrome/browser/history/expire_history_backend.cc
@@ -86,7 +86,7 @@ class AutoSubframeVisitsReader : public ExpiringVisitsReader {
db->GetVisitsInRangeForTransition(begin_time, early_end_time,
max_visits,
- content::PAGE_TRANSITION_AUTO_SUBFRAME,
+ ui::PAGE_TRANSITION_AUTO_SUBFRAME,
visits);
bool more = static_cast<int>(visits->size()) == max_visits;
if (!more)
@@ -399,13 +399,13 @@ void ExpireHistoryBackend::ExpireURLsForVisits(const VisitVector& visits,
// TODO(pkasting): http://b/1148304 We shouldn't be marking so many URLs as
// typed, which would help eliminate the need for this code (we still would
// need to handle RELOAD transitions specially, though).
- content::PageTransition transition =
- content::PageTransitionStripQualifier(visits[i].transition);
- if (transition != content::PAGE_TRANSITION_RELOAD)
+ ui::PageTransition transition =
+ ui::PageTransitionStripQualifier(visits[i].transition);
+ if (transition != ui::PAGE_TRANSITION_RELOAD)
cur.visit_count++;
- if ((transition == content::PAGE_TRANSITION_TYPED &&
- !content::PageTransitionIsRedirect(visits[i].transition)) ||
- transition == content::PAGE_TRANSITION_KEYWORD_GENERATED)
+ if ((transition == ui::PAGE_TRANSITION_TYPED &&
+ !ui::PageTransitionIsRedirect(visits[i].transition)) ||
+ transition == ui::PAGE_TRANSITION_KEYWORD_GENERATED)
cur.typed_count++;
}
« no previous file with comments | « chrome/browser/history/android/visit_sql_handler.cc ('k') | chrome/browser/history/expire_history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698