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

Unified Diff: chrome/browser/automation/testing_automation_provider.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
Index: chrome/browser/automation/testing_automation_provider.cc
===================================================================
--- chrome/browser/automation/testing_automation_provider.cc (revision 105162)
+++ chrome/browser/automation/testing_automation_provider.cc (working copy)
@@ -505,7 +505,7 @@
observer = new TabAppendedNotificationObserver(browser, this,
reply_message);
TabContentsWrapper* contents =
- browser->AddSelectedTabWithURL(url, PageTransition::TYPED);
+ browser->AddSelectedTabWithURL(url, content::PAGE_TRANSITION_TYPED);
if (contents) {
append_tab_response =
GetIndexForNavigationController(&contents->controller(), browser);
@@ -603,7 +603,8 @@
number_of_navigations, false, false);
// TODO(darin): avoid conversion to GURL.
- browser->OpenURL(url, GURL(), CURRENT_TAB, PageTransition::TYPED);
+ browser->OpenURL(
+ url, GURL(), CURRENT_TAB, content::PAGE_TRANSITION_TYPED);
return;
}
}
@@ -636,7 +637,8 @@
if (browser) {
// Don't add any listener unless a callback mechanism is desired.
// TODO(vibhor): Do this if such a requirement arises in future.
- browser->OpenURL(url, GURL(), disposition, PageTransition::TYPED);
+ browser->OpenURL(
+ url, GURL(), disposition, content::PAGE_TRANSITION_TYPED);
*status = true;
}
}
@@ -3070,7 +3072,7 @@
id_scope,
0,
GURL(),
- PageTransition::LINK,
+ content::PAGE_TRANSITION_LINK,
history::RedirectList(),
history::SOURCE_BROWSED,
false);
@@ -6010,7 +6012,8 @@
&tab_contents->controller(), this, reply_message,
navigation_count, false, true);
browser->OpenURLFromTab(
- tab_contents, GURL(url), GURL(), CURRENT_TAB, PageTransition::TYPED);
+ tab_contents, GURL(url), GURL(), CURRENT_TAB,
+ content::PAGE_TRANSITION_TYPED);
}
void TestingAutomationProvider::ExecuteJavascriptJSON(

Powered by Google App Engine
This is Rietveld 408576698