| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/android/bluetooth_chooser_android.h" | 5 #include "chrome/browser/ui/android/bluetooth_chooser_android.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ssl/chrome_security_state_model_client.h" | 11 #include "chrome/browser/ssl/chrome_security_state_model_client.h" |
| 12 #include "chrome/browser/ui/android/view_android_helper.h" | |
| 13 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 14 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 15 #include "components/prefs/pref_service.h" | 14 #include "components/prefs/pref_service.h" |
| 16 #include "components/url_formatter/elide_url.h" | 15 #include "components/url_formatter/elide_url.h" |
| 17 #include "content/public/browser/android/content_view_core.h" | 16 #include "content/public/browser/android/content_view_core.h" |
| 18 #include "content/public/browser/render_frame_host.h" | 17 #include "content/public/browser/render_frame_host.h" |
| 19 #include "jni/BluetoothChooserDialog_jni.h" | 18 #include "jni/BluetoothChooserDialog_jni.h" |
| 20 #include "ui/android/window_android.h" | 19 #include "ui/android/window_android.h" |
| 21 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 22 #include "url/origin.h" | 21 #include "url/origin.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // static | 173 // static |
| 175 bool BluetoothChooserAndroid::Register(JNIEnv* env) { | 174 bool BluetoothChooserAndroid::Register(JNIEnv* env) { |
| 176 return RegisterNativesImpl(env); | 175 return RegisterNativesImpl(env); |
| 177 } | 176 } |
| 178 | 177 |
| 179 void BluetoothChooserAndroid::OpenURL(const char* url) { | 178 void BluetoothChooserAndroid::OpenURL(const char* url) { |
| 180 web_contents_->OpenURL(content::OpenURLParams( | 179 web_contents_->OpenURL(content::OpenURLParams( |
| 181 GURL(url), content::Referrer(), NEW_FOREGROUND_TAB, | 180 GURL(url), content::Referrer(), NEW_FOREGROUND_TAB, |
| 182 ui::PAGE_TRANSITION_AUTO_TOPLEVEL, false /* is_renderer_initiated */)); | 181 ui::PAGE_TRANSITION_AUTO_TOPLEVEL, false /* is_renderer_initiated */)); |
| 183 } | 182 } |
| OLD | NEW |