Index: components/infobars/core/confirm_infobar_delegate_factory.cc |
diff --git a/components/infobars/core/confirm_infobar_delegate_factory.cc b/components/infobars/core/confirm_infobar_delegate_factory.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..387e3aca02dda7a35af5ea38082fd3fee5446303 |
--- /dev/null |
+++ b/components/infobars/core/confirm_infobar_delegate_factory.cc |
@@ -0,0 +1,28 @@ |
+// 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 "components/infobars/core/confirm_infobar_delegate_factory.h" |
+ |
+#include "base/logging.h" |
+ |
+namespace { |
+ConfirmInfoBarDelegateFactory* g_confirm_infobar_delegate_factory = nullptr; |
+} |
+ |
+ConfirmInfoBarDelegateFactory::ConfirmInfoBarDelegateFactory() { |
+} |
+ |
+ConfirmInfoBarDelegateFactory::~ConfirmInfoBarDelegateFactory() { |
+} |
+ |
+// static |
+void ConfirmInfoBarDelegateFactory::SetInstance( |
+ ConfirmInfoBarDelegateFactory* instance) { |
+ g_confirm_infobar_delegate_factory = instance; |
+} |
+ |
+// static |
+ConfirmInfoBarDelegateFactory* ConfirmInfoBarDelegateFactory::GetInstance() { |
+ return g_confirm_infobar_delegate_factory; |
+} |