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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 4697005: Part 3 of reapplying r64637. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prune dead files from gyp Created 10 years, 1 month 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/browser/automation/testing_automation_provider.h ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 1b8b5b9d7e5dac4a68f4c16a57261fc398252469..3dc5f6cd96ba5f8fd5afee9f837a010dfecee426 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -1354,7 +1354,7 @@ void TestingAutomationProvider::GetSecurityState(int handle,
void TestingAutomationProvider::GetPageType(
int handle,
bool* success,
- NavigationEntry::PageType* page_type) {
+ PageType* page_type) {
if (tab_tracker_->ContainsHandle(handle)) {
NavigationController* tab = tab_tracker_->GetResource(handle);
NavigationEntry* entry = tab->GetActiveEntry();
@@ -1362,12 +1362,12 @@ void TestingAutomationProvider::GetPageType(
*success = true;
// In order to return the proper result when an interstitial is shown and
// no navigation entry were created for it we need to ask the TabContents.
- if (*page_type == NavigationEntry::NORMAL_PAGE &&
+ if (*page_type == NORMAL_PAGE &&
tab->tab_contents()->showing_interstitial_page())
- *page_type = NavigationEntry::INTERSTITIAL_PAGE;
+ *page_type = INTERSTITIAL_PAGE;
} else {
*success = false;
- *page_type = NavigationEntry::NORMAL_PAGE;
+ *page_type = NORMAL_PAGE;
}
}
@@ -1385,7 +1385,7 @@ void TestingAutomationProvider::ActionOnSSLBlockingPage(
if (tab_tracker_->ContainsHandle(handle)) {
NavigationController* tab = tab_tracker_->GetResource(handle);
NavigationEntry* entry = tab->GetActiveEntry();
- if (entry->page_type() == NavigationEntry::INTERSTITIAL_PAGE) {
+ if (entry->page_type() == INTERSTITIAL_PAGE) {
TabContents* tab_contents = tab->tab_contents();
InterstitialPage* ssl_blocking_page =
InterstitialPage::GetInterstitialPage(tab_contents);
@@ -2469,10 +2469,10 @@ void TestingAutomationProvider::GetNavigationInfo(
return_value->Set("ssl", ssl);
// Page type.
- std::map<NavigationEntry::PageType, std::string> pagetype_to_string;
- pagetype_to_string[NavigationEntry::NORMAL_PAGE] = "NORMAL_PAGE";
- pagetype_to_string[NavigationEntry::ERROR_PAGE] = "ERROR_PAGE";
- pagetype_to_string[NavigationEntry::INTERSTITIAL_PAGE] = "INTERSTITIAL_PAGE";
+ std::map<PageType, std::string> pagetype_to_string;
+ pagetype_to_string[NORMAL_PAGE] = "NORMAL_PAGE";
+ pagetype_to_string[ERROR_PAGE] = "ERROR_PAGE";
+ pagetype_to_string[INTERSTITIAL_PAGE] = "INTERSTITIAL_PAGE";
return_value->SetString("page_type",
pagetype_to_string[nav_entry->page_type()]);
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.h ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698