From 051655ad35d7b3c442ba1df8880da91123bf9bc9 Mon Sep 17 00:00:00 2001 From: "droger@chromium.org" Date: Fri, 18 Apr 2014 15:09:41 +0000 Subject: Move Infobars core files to the Infobars component This CL sets up the directory structure for the Infobars component and the infobars_core target. It also does a simple code move to the compoonent. This CL does not move ConfirmInfoBarDelegate because it still has a dependency on chrome/ (for strings). BUG=354379 TBR=sky, reed Review URL: https://codereview.chromium.org/240193003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264792 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/download/download_browsertest.cc | 4 ++-- chrome/browser/download/download_request_infobar_delegate.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/download') diff --git a/chrome/browser/download/download_browsertest.cc b/chrome/browser/download/download_browsertest.cc index 8eb596f..17bcd36 100644 --- a/chrome/browser/download/download_browsertest.cc +++ b/chrome/browser/download/download_browsertest.cc @@ -43,7 +43,6 @@ #include "chrome/browser/history/history_service.h" #include "chrome/browser/history/history_service_factory.h" #include "chrome/browser/infobars/confirm_infobar_delegate.h" -#include "chrome/browser/infobars/infobar.h" #include "chrome/browser/infobars/infobar_service.h" #include "chrome/browser/net/url_request_mock_util.h" #include "chrome/browser/profiles/profile.h" @@ -63,6 +62,7 @@ #include "chrome/test/base/in_process_browser_test.h" #include "chrome/test/base/test_switches.h" #include "chrome/test/base/ui_test_utils.h" +#include "components/infobars/core/infobar.h" #include "content/public/browser/download_interrupt_reasons.h" #include "content/public/browser/download_item.h" #include "content/public/browser/download_manager.h" @@ -2796,7 +2796,7 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, TestMultipleDownloadsInfobar) { ASSERT_EQ(1u, infobar_service->infobar_count()); // Get the infobar at index 0. - InfoBar* infobar = infobar_service->infobar_at(0); + infobars::InfoBar* infobar = infobar_service->infobar_at(0); ConfirmInfoBarDelegate* confirm_infobar = infobar->delegate()->AsConfirmInfoBarDelegate(); ASSERT_TRUE(confirm_infobar != NULL); diff --git a/chrome/browser/download/download_request_infobar_delegate.cc b/chrome/browser/download/download_request_infobar_delegate.cc index 7fdf95e..ced71ad 100644 --- a/chrome/browser/download/download_request_infobar_delegate.cc +++ b/chrome/browser/download/download_request_infobar_delegate.cc @@ -4,8 +4,8 @@ #include "chrome/browser/download/download_request_infobar_delegate.h" -#include "chrome/browser/infobars/infobar.h" #include "chrome/browser/infobars/infobar_service.h" +#include "components/infobars/core/infobar.h" #include "grit/generated_resources.h" #include "grit/theme_resources.h" #include "ui/base/l10n/l10n_util.h" -- cgit v1.1