Commit 543debdb authored by John Z Wu's avatar John Z Wu Committed by Commit Bot

Enable autofill uma histograms by security levels

Change-Id: I67237332cc5d7e754b170cb09e1728442aada688
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144678Reviewed-by: default avatarHiroshi Ichikawa <ichikawa@chromium.org>
Reviewed-by: default avatarChristopher Thompson <cthomp@chromium.org>
Commit-Queue: John Wu <jzw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758259}
parent b2823b3f
...@@ -277,6 +277,7 @@ source_set("web_view_sources") { ...@@ -277,6 +277,7 @@ source_set("web_view_sources") {
"//components/pref_registry", "//components/pref_registry",
"//components/prefs", "//components/prefs",
"//components/proxy_config", "//components/proxy_config",
"//components/security_state/ios",
"//components/signin/core/browser", "//components/signin/core/browser",
"//components/signin/ios/browser", "//components/signin/ios/browser",
"//components/signin/public/identity_manager", "//components/signin/public/identity_manager",
......
...@@ -20,6 +20,7 @@ include_rules = [ ...@@ -20,6 +20,7 @@ include_rules = [
"+components/pref_registry", "+components/pref_registry",
"+components/prefs", "+components/prefs",
"+components/proxy_config", "+components/proxy_config",
"+components/security_state/ios",
"+components/signin/core/browser", "+components/signin/core/browser",
"+components/signin/ios", "+components/signin/ios",
"+components/signin/public", "+components/signin/public",
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "components/autofill/core/browser/payments/payments_client.h" #include "components/autofill/core/browser/payments/payments_client.h"
#include "components/autofill/core/common/autofill_prefs.h" #include "components/autofill/core/common/autofill_prefs.h"
#include "components/autofill/ios/browser/autofill_util.h" #include "components/autofill/ios/browser/autofill_util.h"
#include "components/security_state/ios/security_state_utils.h"
#import "ios/web/public/web_state.h" #import "ios/web/public/web_state.h"
#include "ios/web_view/internal/app/application_context.h" #include "ios/web_view/internal/app/application_context.h"
#import "ios/web_view/internal/autofill/web_view_autofill_log_router_factory.h" #import "ios/web_view/internal/autofill/web_view_autofill_log_router_factory.h"
...@@ -118,9 +119,7 @@ AddressNormalizer* WebViewAutofillClientIOS::GetAddressNormalizer() { ...@@ -118,9 +119,7 @@ AddressNormalizer* WebViewAutofillClientIOS::GetAddressNormalizer() {
security_state::SecurityLevel security_state::SecurityLevel
WebViewAutofillClientIOS::GetSecurityLevelForUmaHistograms() { WebViewAutofillClientIOS::GetSecurityLevelForUmaHistograms() {
// The metrics are not recorded for iOS webview, so return the count value return security_state::GetSecurityLevelForWebState(web_state_);
// which will not be recorded.
return security_state::SecurityLevel::SECURITY_LEVEL_COUNT;
} }
void WebViewAutofillClientIOS::ShowAutofillSettings( void WebViewAutofillClientIOS::ShowAutofillSettings(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment