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

Side by Side Diff: chrome/browser/ui/views/infobars/legacy_infobars_mac.cc

Issue 1978563002: Stop compiling password infobar code on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up cocoa Created 4 years, 7 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 unified diff | Download patch
OLDNEW
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/save_password_infobar_controller.mm ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698