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 "chrome/browser/password_manager/save_password_infobar_delegate.h" | 5 #include "chrome/browser/password_manager/save_password_infobar_delegate.h" |
| 6 #include "chrome/browser/translate/chrome_translate_client.h" |
6 #include "chrome/browser/ui/views/infobars/confirm_infobar.h" | 7 #include "chrome/browser/ui/views/infobars/confirm_infobar.h" |
7 | 8 |
8 // TODO(tapted): Delete this file when Mac uses the password bubble by default. | 9 // TODO(tapted): Delete this file when Mac uses the password bubble by default. |
9 | 10 |
10 scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar( | 11 scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar( |
11 scoped_ptr<SavePasswordInfoBarDelegate> delegate) { | 12 scoped_ptr<SavePasswordInfoBarDelegate> delegate) { |
12 return make_scoped_ptr(new ConfirmInfoBar(delegate.Pass())); | 13 return make_scoped_ptr(new ConfirmInfoBar(delegate.Pass())); |
13 } | 14 } |
| 15 |
| 16 scoped_ptr<infobars::InfoBar> ChromeTranslateClient::CreateInfoBar( |
| 17 scoped_ptr<translate::TranslateInfoBarDelegate> delegate) const { |
| 18 NOTREACHED(); |
| 19 return nullptr; |
| 20 } |
OLD | NEW |