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

Side by Side Diff: chrome/browser/ui/android/infobars/download_overwrite_infobar.h

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none 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 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 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/ui/android/infobars/infobar_android.h" 10 #include "chrome/browser/ui/android/infobars/infobar_android.h"
(...skipping 21 matching lines...) Expand all
32 // InfoBarAndroid: 32 // InfoBarAndroid:
33 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( 33 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
34 JNIEnv* env) override; 34 JNIEnv* env) override;
35 void ProcessButton(int action) override; 35 void ProcessButton(int action) override;
36 36
37 chrome::android::DownloadOverwriteInfoBarDelegate* GetDelegate(); 37 chrome::android::DownloadOverwriteInfoBarDelegate* GetDelegate();
38 38
39 DISALLOW_COPY_AND_ASSIGN(DownloadOverwriteInfoBar); 39 DISALLOW_COPY_AND_ASSIGN(DownloadOverwriteInfoBar);
40 }; 40 };
41 41
42 // Registers the native methods through JNI.
43 bool RegisterDownloadOverwriteInfoBarDelegate(JNIEnv* env);
44
45 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_ 42 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698