| 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..3cf5f14e14b6371cf15d478b4a3ec5abc438e64c 100644
|
| --- a/chrome/browser/ui/android/bluetooth_chooser_android.cc
|
| +++ b/chrome/browser/ui/android/bluetooth_chooser_android.cc
|
| @@ -7,6 +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/chrome_security_state_model_client.h"
|
| #include "chrome/browser/ssl/security_state_model.h"
|
| #include "chrome/browser/ui/android/window_android_helper.h"
|
| #include "content/public/browser/android/content_view_core.h"
|
| @@ -27,9 +28,9 @@ BluetoothChooserAndroid::BluetoothChooserAndroid(
|
| content::ContentViewCore::FromWebContents(
|
| web_contents)->GetWindowAndroid()->GetJavaObject();
|
|
|
| - SecurityStateModel* security_model =
|
| - SecurityStateModel::FromWebContents(web_contents);
|
| - DCHECK(security_model);
|
| + ChromeSecurityStateModelClient* security_model_client =
|
| + ChromeSecurityStateModelClient::FromWebContents(web_contents);
|
| + DCHECK(security_model_client);
|
|
|
| // Create (and show) the BluetoothChooser dialog.
|
| JNIEnv* env = AttachCurrentThread();
|
| @@ -37,7 +38,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_client->GetSecurityInfo().security_level,
|
| reinterpret_cast<intptr_t>(this)));
|
| }
|
|
|
|
|