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

Unified Diff: components/infobars/core/infobar.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.h ('k') | components/infobars/core/infobar_container.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/infobars/core/infobar.cc
diff --git a/chrome/browser/infobars/infobar.cc b/components/infobars/core/infobar.cc
similarity index 96%
rename from chrome/browser/infobars/infobar.cc
rename to components/infobars/core/infobar.cc
index 15f04c8be5e3438afc11e7c472d3280381b10b6b..6c9398aa4e4dc96d818a27e5aefbcc32ae5a5d22 100644
--- a/chrome/browser/infobars/infobar.cc
+++ b/components/infobars/core/infobar.cc
@@ -2,16 +2,18 @@
// 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.h"
+#include "components/infobars/core/infobar.h"
#include <cmath>
#include "base/logging.h"
#include "build/build_config.h"
-#include "chrome/browser/infobars/infobar_container.h"
-#include "chrome/browser/infobars/infobar_manager.h"
+#include "components/infobars/core/infobar_container.h"
+#include "components/infobars/core/infobar_manager.h"
#include "ui/gfx/animation/slide_animation.h"
+namespace infobars {
+
InfoBar::InfoBar(scoped_ptr<InfoBarDelegate> delegate)
: owner_(NULL),
delegate_(delegate.Pass()),
@@ -173,3 +175,5 @@ void InfoBar::MaybeDelete() {
delete this;
}
}
+
+} // namespace infobars
« no previous file with comments | « components/infobars/core/infobar.h ('k') | components/infobars/core/infobar_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698