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

Unified Diff: chrome/tools/profiles/generate_profile.cc

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/test/base/ui_test_utils.cc ('k') | content/browser/download/download_create_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/profiles/generate_profile.cc
===================================================================
--- chrome/tools/profiles/generate_profile.cc (revision 105162)
+++ chrome/tools/profiles/generate_profile.cc (working copy)
@@ -137,17 +137,17 @@
printf("Inserting %d URLs...\n", batch_size);
GURL previous_url;
- PageTransition::Type transition = PageTransition::TYPED;
+ content::PageTransition transition = content::PAGE_TRANSITION_TYPED;
const int end_page_id = page_id + batch_size;
history::TopSites* top_sites = profile->GetTopSites();
for (; page_id < end_page_id; ++page_id) {
// Randomly decide whether this new URL simulates following a link or
// whether it's a jump to a new URL.
if (!previous_url.is_empty() && RandomFloat() < kFollowLinkProbability) {
- transition = PageTransition::LINK;
+ transition = content::PAGE_TRANSITION_LINK;
} else {
previous_url = GURL();
- transition = PageTransition::TYPED;
+ transition = content::PAGE_TRANSITION_TYPED;
}
// Pick a URL, either newly at random or from our list of previously
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | content/browser/download/download_create_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698