OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
6 #include "chrome/browser/password_manager/save_password_infobar_delegate.h" | |
7 #include "chrome/browser/translate/chrome_translate_client.h" | 6 #include "chrome/browser/translate/chrome_translate_client.h" |
8 #include "chrome/browser/ui/views/infobars/confirm_infobar.h" | |
9 | 7 |
10 // On Mac, some infobars are still used that have been migrated to a bubble UI | 8 // On Mac, some infobars are still used that have been migrated to a bubble UI |
11 // on other views platforms. When building the toolkit-views browser window on | 9 // on other views platforms. When building the toolkit-views browser window on |
12 // Mac, the bubble UI can be used, but interfaces built for Cocoa on Mac still | 10 // Mac, the bubble UI can be used, but interfaces built for Cocoa on Mac still |
13 // depend on symbols to provide infobars. This file provides the symbols wanted | 11 // depend on symbols to provide infobars. This file provides the symbols wanted |
14 // elsewhere for OS_MACOSX, but aren't otherwise needed for a views browser. | 12 // elsewhere for OS_MACOSX, but aren't otherwise needed for a views browser. |
15 // TODO(tapted): Delete this file when Mac uses the bubbles by default. | 13 // TODO(tapted): Delete this file when Mac uses the bubbles by default. |
16 | 14 |
17 std::unique_ptr<infobars::InfoBar> CreateSavePasswordInfoBar( | |
18 std::unique_ptr<SavePasswordInfoBarDelegate> delegate) { | |
19 return base::WrapUnique(new ConfirmInfoBar(std::move(delegate))); | |
20 } | |
21 | |
22 std::unique_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar( | 15 std::unique_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar( |
23 std::unique_ptr<translate::TranslateInfoBarDelegate> delegate) const { | 16 std::unique_ptr<translate::TranslateInfoBarDelegate> delegate) const { |
24 NOTREACHED(); | 17 NOTREACHED(); |
25 return nullptr; | 18 return nullptr; |
26 } | 19 } |
OLD | NEW |