| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/android/chrome_application.h" | 5 #include "chrome/browser/android/chrome_application.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/android/context_utils.h" | 9 #include "base/android/context_utils.h" |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 base::android::AttachCurrentThread(), | 113 base::android::AttachCurrentThread(), |
| 114 base::android::GetApplicationContext()); | 114 base::android::GetApplicationContext()); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void ChromeApplication::OpenClearBrowsingData( | 117 void ChromeApplication::OpenClearBrowsingData( |
| 118 content::WebContents* web_contents) { | 118 content::WebContents* web_contents) { |
| 119 TabAndroid* tab = TabAndroid::FromWebContents(web_contents); | 119 TabAndroid* tab = TabAndroid::FromWebContents(web_contents); |
| 120 DCHECK(tab); | 120 DCHECK(tab); |
| 121 Java_ChromeApplication_openClearBrowsingData( | 121 Java_ChromeApplication_openClearBrowsingData( |
| 122 base::android::AttachCurrentThread(), | 122 base::android::AttachCurrentThread(), |
| 123 base::android::GetApplicationContext(), | 123 base::android::GetApplicationContext(), tab->GetJavaObject()); |
| 124 tab->GetJavaObject().obj()); | |
| 125 } | 124 } |
| 126 | 125 |
| 127 bool ChromeApplication::AreParentalControlsEnabled() { | 126 bool ChromeApplication::AreParentalControlsEnabled() { |
| 128 return Java_ChromeApplication_areParentalControlsEnabled( | 127 return Java_ChromeApplication_areParentalControlsEnabled( |
| 129 base::android::AttachCurrentThread(), | 128 base::android::AttachCurrentThread(), |
| 130 base::android::GetApplicationContext()); | 129 base::android::GetApplicationContext()); |
| 131 } | 130 } |
| 132 | 131 |
| 133 } // namespace android | 132 } // namespace android |
| 134 } // namespace chrome | 133 } // namespace chrome |
| OLD | NEW |