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

Unified Diff: components/infobars/core/infobar_delegate.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_delegate.h ('k') | components/infobars/core/infobar_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/infobars/core/infobar_delegate.cc
diff --git a/chrome/browser/infobars/infobar_delegate.cc b/components/infobars/core/infobar_delegate.cc
similarity index 92%
rename from chrome/browser/infobars/infobar_delegate.cc
rename to components/infobars/core/infobar_delegate.cc
index b4576d25012686c535641ec5c1a420651cb9c8e2..5c7c5f874d8e521985da3e2f3b6e3a021ba8e92b 100644
--- a/chrome/browser/infobars/infobar_delegate.cc
+++ b/components/infobars/core/infobar_delegate.cc
@@ -2,14 +2,16 @@
// 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_delegate.h"
+#include "components/infobars/core/infobar_delegate.h"
#include "base/logging.h"
#include "build/build_config.h"
-#include "chrome/browser/infobars/infobar.h"
-#include "chrome/browser/infobars/infobar_manager.h"
+#include "components/infobars/core/infobar.h"
+#include "components/infobars/core/infobar_manager.h"
#include "ui/base/resource/resource_bundle.h"
+namespace infobars {
+
const int InfoBarDelegate::kNoIconID = 0;
InfoBarDelegate::~InfoBarDelegate() {
@@ -105,3 +107,5 @@ bool InfoBarDelegate::ShouldExpireInternal(
// anyone who overrides this as necessary!
return (contents_unique_id_ != details.entry_id) || details.is_reload;
}
+
+} // namespace infobars
« no previous file with comments | « components/infobars/core/infobar_delegate.h ('k') | components/infobars/core/infobar_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698