diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-13 03:51:58 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-13 03:51:58 +0000 |
commit | 2905f74ce902dbf21dcbbf7ed3537f803f027630 (patch) | |
tree | 0371f49d1768902bf69e0130b55ec104258f5cf9 /chrome/tools/profiles | |
parent | 49098f7091448e437190f23cc67a705df4abd079 (diff) | |
download | chromium_src-2905f74ce902dbf21dcbbf7ed3537f803f027630.zip chromium_src-2905f74ce902dbf21dcbbf7ed3537f803f027630.tar.gz chromium_src-2905f74ce902dbf21dcbbf7ed3537f803f027630.tar.bz2 |
Move PageTransition into content namespace. While I'm touching all these files, I've also updated it to use the enum naming convention in the Content API.
BUG=98716
Review URL: http://codereview.chromium.org/8253002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/profiles')
-rw-r--r-- | chrome/tools/profiles/generate_profile.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc index 751a8e7..47a4a16e 100644 --- a/chrome/tools/profiles/generate_profile.cc +++ b/chrome/tools/profiles/generate_profile.cc @@ -137,17 +137,17 @@ void InsertURLBatch(Profile* profile, 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 |