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

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

Issue 7819009: For the SSL cert status, convert anonymous enum that gives bit values into a typedefed uint32. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/automation/testing_automation_provider.cc
===================================================================
--- chrome/browser/automation/testing_automation_provider.cc (revision 101367)
+++ chrome/browser/automation/testing_automation_provider.cc (working copy)
@@ -1473,11 +1473,12 @@
}
}
-void TestingAutomationProvider::GetSecurityState(int handle,
- bool* success,
- SecurityStyle* security_style,
- int* ssl_cert_status,
- int* insecure_content_status) {
+void TestingAutomationProvider::GetSecurityState(
+ int handle,
+ bool* success,
+ SecurityStyle* security_style,
+ net::CertStatus* ssl_cert_status,
+ int* insecure_content_status) {
if (tab_tracker_->ContainsHandle(handle)) {
NavigationController* tab = tab_tracker_->GetResource(handle);
NavigationEntry* entry = tab->GetActiveEntry();
@@ -1488,7 +1489,7 @@
} else {
*success = false;
*security_style = SECURITY_STYLE_UNKNOWN;
- *ssl_cert_status = 0;
+ *ssl_cert_status = net::CERT_STATUS_NO_ERROR;
*insecure_content_status = 0;
}
}

Powered by Google App Engine
This is Rietveld 408576698