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

Unified Diff: ios/chrome/browser/infobars/confirm_infobar_delegate.mm

Issue 812823002: Remove dependency of infobars component on the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on Android 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
« no previous file with comments | « components/infobars/test/infobar_test.cc ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/infobars/confirm_infobar_delegate.mm
diff --git a/ios/chrome/browser/infobars/confirm_infobar_delegate.mm b/ios/chrome/browser/infobars/confirm_infobar_delegate.mm
deleted file mode 100644
index 47493a06ed802eb7572a450e678ec18d419c8e16..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/infobars/confirm_infobar_delegate.mm
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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.h"
-
-#include "base/mac/scoped_nsobject.h"
-#include "base/memory/scoped_ptr.h"
-#include "ios/chrome/browser/infobars/confirm_infobar_controller.h"
-#include "ios/chrome/browser/infobars/infobar.h"
-
-// This function is defined in the component, but implemented in the embedder.
-// static
-scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar(
- scoped_ptr<ConfirmInfoBarDelegate> delegate) {
- scoped_ptr<InfoBarIOS> infobar(new InfoBarIOS(delegate.Pass()));
- base::scoped_nsobject<ConfirmInfoBarController> controller(
- [[ConfirmInfoBarController alloc] initWithDelegate:infobar.get()]);
- infobar->SetController(controller);
- return infobar.Pass();
-}
« no previous file with comments | « components/infobars/test/infobar_test.cc ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698