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

Side by Side Diff: chrome/browser/ui/android/infobars/infobar_android.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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/ui/android/infobars/infobar_android.h" 5 #include "chrome/browser/ui/android/infobars/infobar_android.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "chrome/browser/android/resource_mapper.h" 12 #include "chrome/browser/android/resource_mapper.h"
13 #include "chrome/browser/infobars/infobar_service.h" 13 #include "chrome/browser/infobars/infobar_service.h"
14 #include "components/infobars/core/infobar.h" 14 #include "components/infobars/core/infobar.h"
15 #include "components/infobars/core/infobar_delegate.h" 15 #include "components/infobars/core/infobar_delegate.h"
16 #include "jni/InfoBar_jni.h" 16 #include "jni/InfoBar_jni.h"
17 17
18 using base::android::JavaParamRef;
18 19
19 // InfoBarAndroid ------------------------------------------------------------- 20 // InfoBarAndroid -------------------------------------------------------------
20 21
21 InfoBarAndroid::InfoBarAndroid( 22 InfoBarAndroid::InfoBarAndroid(
22 std::unique_ptr<infobars::InfoBarDelegate> delegate) 23 std::unique_ptr<infobars::InfoBarDelegate> delegate)
23 : infobars::InfoBar(std::move(delegate)) {} 24 : infobars::InfoBar(std::move(delegate)) {}
24 25
25 InfoBarAndroid::~InfoBarAndroid() { 26 InfoBarAndroid::~InfoBarAndroid() {
26 if (!java_info_bar_.is_null()) { 27 if (!java_info_bar_.is_null()) {
27 JNIEnv* env = base::android::AttachCurrentThread(); 28 JNIEnv* env = base::android::AttachCurrentThread();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int InfoBarAndroid::GetEnumeratedIconId() { 79 int InfoBarAndroid::GetEnumeratedIconId() {
79 return ResourceMapper::MapFromChromiumId(delegate()->GetIconId()); 80 return ResourceMapper::MapFromChromiumId(delegate()->GetIconId());
80 } 81 }
81 82
82 83
83 // Native JNI methods --------------------------------------------------------- 84 // Native JNI methods ---------------------------------------------------------
84 85
85 bool RegisterNativeInfoBar(JNIEnv* env) { 86 bool RegisterNativeInfoBar(JNIEnv* env) {
86 return RegisterNativesImpl(env); 87 return RegisterNativesImpl(env);
87 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698