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

Unified Diff: chrome/browser/ui/android/bluetooth_chooser_android.cc

Issue 2363623002: Remove SecurityStateModel memoization (Closed)
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ui/android/connection_info_popup_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/bluetooth_chooser_android.cc
diff --git a/chrome/browser/ui/android/bluetooth_chooser_android.cc b/chrome/browser/ui/android/bluetooth_chooser_android.cc
index 61116924a6c984f904e49edbc4e639948b1edea5..8003eadbb5f7033f2d03d94b98761991961faa69 100644
--- a/chrome/browser/ui/android/bluetooth_chooser_android.cc
+++ b/chrome/browser/ui/android/bluetooth_chooser_android.cc
@@ -46,9 +46,10 @@ BluetoothChooserAndroid::BluetoothChooserAndroid(
base::android::ConvertUTF16ToJavaString(
env,
url_formatter::FormatUrlForSecurityDisplay(GURL(origin.Serialize())));
+ security_state::SecurityStateModel::SecurityInfo security_info;
+ security_model_client->GetSecurityInfo(&security_info);
java_dialog_.Reset(Java_BluetoothChooserDialog_create(
- env, window_android, origin_string,
- security_model_client->GetSecurityInfo().security_level,
+ env, window_android, origin_string, security_info.security_level,
reinterpret_cast<intptr_t>(this)));
}
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ui/android/connection_info_popup_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698