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

Unified Diff: components/infobars/core/infobar_manager.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
« no previous file with comments | « components/infobars/core/infobar_manager.h ('k') | components/infobars/core/infobars_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/infobars/core/infobar_manager.cc
diff --git a/chrome/browser/infobars/infobar_manager.cc b/components/infobars/core/infobar_manager.cc
similarity index 95%
rename from chrome/browser/infobars/infobar_manager.cc
rename to components/infobars/core/infobar_manager.cc
index ce2cb6c2160f14e7687864e087e64fe98e63f26a..6525a9aa87dbd72921ee5d726bec7b7f3fda9ae9 100644
--- a/chrome/browser/infobars/infobar_manager.cc
+++ b/components/infobars/core/infobar_manager.cc
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/infobars/infobar_manager.h"
+#include "components/infobars/core/infobar_manager.h"
#include "base/command_line.h"
-#include "chrome/browser/infobars/infobar.h"
-#include "chrome/common/chrome_switches.h"
+#include "components/infobars/core/infobar.h"
+#include "components/infobars/core/infobars_switches.h"
+
+namespace infobars {
InfoBar* InfoBarManager::AddInfoBar(scoped_ptr<InfoBar> infobar) {
DCHECK(infobar);
@@ -135,3 +137,5 @@ void InfoBarManager::RemoveInfoBarInternal(InfoBar* infobar, bool animate) {
infobar->CloseSoon();
}
+
+} // namespace infobars
« no previous file with comments | « components/infobars/core/infobar_manager.h ('k') | components/infobars/core/infobars_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698