diff options
author | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-18 15:09:41 +0000 |
---|---|---|
committer | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-18 15:09:41 +0000 |
commit | 051655ad35d7b3c442ba1df8880da91123bf9bc9 (patch) | |
tree | 25d7d1fa8cb99621c927f1deb2707e1d7b3d0fc6 /chrome/browser/download | |
parent | 8e37bf2199e37e270163eb407fab789c4ba77846 (diff) | |
download | chromium_src-051655ad35d7b3c442ba1df8880da91123bf9bc9.zip chromium_src-051655ad35d7b3c442ba1df8880da91123bf9bc9.tar.gz chromium_src-051655ad35d7b3c442ba1df8880da91123bf9bc9.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/download')
-rw-r--r-- | chrome/browser/download/download_browsertest.cc | 4 | ||||
-rw-r--r-- | chrome/browser/download/download_request_infobar_delegate.cc | 2 |
2 files changed, 3 insertions, 3 deletions
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" |