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

Unified Diff: chrome/browser/ui/android/infobars/infobar_container_android.cc

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/infobars/infobar_container_android.cc
diff --git a/chrome/browser/ui/android/infobars/infobar_container_android.cc b/chrome/browser/ui/android/infobars/infobar_container_android.cc
index fd9d565f91c0a8f249c48355494ca98e68df4242..10a675b290c55ebacf1d64f5b86fcc256bef250d 100644
--- a/chrome/browser/ui/android/infobars/infobar_container_android.cc
+++ b/chrome/browser/ui/android/infobars/infobar_container_android.cc
@@ -7,11 +7,11 @@
#include "base/android/jni_android.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
-#include "chrome/browser/infobars/infobar.h"
-#include "chrome/browser/infobars/infobar_delegate.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android.h"
#include "chrome/browser/ui/android/infobars/infobar_android.h"
+#include "components/infobars/core/infobar.h"
+#include "components/infobars/core/infobar_delegate.h"
#include "content/public/browser/web_contents.h"
#include "jni/InfoBarContainer_jni.h"
@@ -21,10 +21,9 @@
InfoBarContainerAndroid::InfoBarContainerAndroid(JNIEnv* env,
jobject obj,
jobject auto_login_delegate)
- : InfoBarContainer(NULL),
+ : infobars::InfoBarContainer(NULL),
weak_java_infobar_container_(env, obj),
- weak_java_auto_login_delegate_(env, auto_login_delegate) {
-}
+ weak_java_auto_login_delegate_(env, auto_login_delegate) {}
InfoBarContainerAndroid::~InfoBarContainerAndroid() {
RemoveAllInfoBarsForDestruction();
@@ -34,8 +33,9 @@ void InfoBarContainerAndroid::Destroy(JNIEnv* env, jobject obj) {
delete this;
}
-void InfoBarContainerAndroid::PlatformSpecificAddInfoBar(InfoBar* infobar,
- size_t position) {
+void InfoBarContainerAndroid::PlatformSpecificAddInfoBar(
+ infobars::InfoBar* infobar,
+ size_t position) {
DCHECK(infobar);
InfoBarAndroid* android_bar = static_cast<InfoBarAndroid*>(infobar);
if (!android_bar) {
@@ -70,13 +70,14 @@ void InfoBarContainerAndroid::AttachJavaInfoBar(InfoBarAndroid* android_bar) {
}
void InfoBarContainerAndroid::PlatformSpecificReplaceInfoBar(
- InfoBar* old_infobar,
- InfoBar* new_infobar) {
+ infobars::InfoBar* old_infobar,
+ infobars::InfoBar* new_infobar) {
static_cast<InfoBarAndroid*>(new_infobar)->PassJavaInfoBar(
static_cast<InfoBarAndroid*>(old_infobar));
}
-void InfoBarContainerAndroid::PlatformSpecificRemoveInfoBar(InfoBar* infobar) {
+void InfoBarContainerAndroid::PlatformSpecificRemoveInfoBar(
+ infobars::InfoBar* infobar) {
InfoBarAndroid* android_infobar = static_cast<InfoBarAndroid*>(infobar);
android_infobar->CloseJavaInfoBar();
}

Powered by Google App Engine
This is Rietveld 408576698