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

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

Issue 1440303002: Componentize SecurityStateModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android/cros fixes Created 5 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/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 0b35ad4d211507c78c85ac797f98aadbc414eea5..fb0910fdd2a3b87b4324f461af5a05c3ee858fd5 100644
--- a/chrome/browser/ui/android/bluetooth_chooser_android.cc
+++ b/chrome/browser/ui/android/bluetooth_chooser_android.cc
@@ -7,7 +7,7 @@
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/ssl/security_state_model.h"
+#include "chrome/browser/ssl/chrome_security_state_model_delegate.h"
#include "chrome/browser/ui/android/window_android_helper.h"
#include "content/public/browser/android/content_view_core.h"
#include "jni/BluetoothChooserDialog_jni.h"
@@ -27,9 +27,9 @@ BluetoothChooserAndroid::BluetoothChooserAndroid(
content::ContentViewCore::FromWebContents(
web_contents)->GetWindowAndroid()->GetJavaObject();
- SecurityStateModel* security_model =
- SecurityStateModel::FromWebContents(web_contents);
- DCHECK(security_model);
+ ChromeSecurityStateModelDelegate* security_model_delegate =
+ ChromeSecurityStateModelDelegate::FromWebContents(web_contents);
+ DCHECK(security_model_delegate);
// Create (and show) the BluetoothChooser dialog.
JNIEnv* env = AttachCurrentThread();
@@ -37,7 +37,7 @@ BluetoothChooserAndroid::BluetoothChooserAndroid(
ConvertUTF8ToJavaString(env, origin.spec());
java_dialog_.Reset(Java_BluetoothChooserDialog_create(
env, window_android.obj(), origin_string.obj(),
- security_model->GetSecurityInfo().security_level,
+ security_model_delegate->GetSecurityInfo().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