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

Unified Diff: chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.cc

Issue 812823002: Remove dependency of infobars component on the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests by instanciating a TestConfirmInfoBarDelegateFactory Created 6 years 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
Index: chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.cc
diff --git a/chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.cc b/chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c5bd824ea8096655747063e4cadfd1a2eb8a009a
--- /dev/null
+++ b/chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.cc
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.h"
+
+#include "base/memory/singleton.h"
+
+ChromeConfirmInfoBarDelegateFactory::ChromeConfirmInfoBarDelegateFactory() {
+}
+
+ChromeConfirmInfoBarDelegateFactory::~ChromeConfirmInfoBarDelegateFactory() {
+}
+
+// static
+ChromeConfirmInfoBarDelegateFactory*
+ChromeConfirmInfoBarDelegateFactory::GetInstance() {
+ return Singleton<ChromeConfirmInfoBarDelegateFactory>::get();
+}
+
+// ChromeConfirmInfoBarDelegateFactory::CreateInfoBar implementation depends
+// on the UI system used and is defined in a chrome/browser/ui/*/infobars
+// implementation file.

Powered by Google App Engine
This is Rietveld 408576698