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

Side by Side Diff: components/infobars/core/infobar_delegate.cc

Issue 861103002: Credentials chooser UI for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaised on top of master. Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/infobars/core/infobar_delegate.h" 5 #include "components/infobars/core/infobar_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "components/infobars/core/infobar.h" 9 #include "components/infobars/core/infobar.h"
10 #include "components/infobars/core/infobar_manager.h" 10 #include "components/infobars/core/infobar_manager.h"
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 int InfoBarDelegate::GetIconID() const { 39 int InfoBarDelegate::GetIconID() const {
40 return kNoIconID; 40 return kNoIconID;
41 } 41 }
42 42
43 InfoBarDelegate::Type InfoBarDelegate::GetInfoBarType() const { 43 InfoBarDelegate::Type InfoBarDelegate::GetInfoBarType() const {
44 return WARNING_TYPE; 44 return WARNING_TYPE;
45 } 45 }
46 46
47 AccountChooserInfoBarDelegateAndroid*
48 InfoBarDelegate::AsAccountChooserInfoBarDelegateAndroid() {
49 return nullptr;
50 }
51
47 AutoLoginInfoBarDelegate* InfoBarDelegate::AsAutoLoginInfoBarDelegate() { 52 AutoLoginInfoBarDelegate* InfoBarDelegate::AsAutoLoginInfoBarDelegate() {
48 return nullptr; 53 return nullptr;
49 } 54 }
50 55
51 ConfirmInfoBarDelegate* InfoBarDelegate::AsConfirmInfoBarDelegate() { 56 ConfirmInfoBarDelegate* InfoBarDelegate::AsConfirmInfoBarDelegate() {
52 return nullptr; 57 return nullptr;
53 } 58 }
54 59
55 ExtensionInfoBarDelegate* InfoBarDelegate::AsExtensionInfoBarDelegate() { 60 ExtensionInfoBarDelegate* InfoBarDelegate::AsExtensionInfoBarDelegate() {
56 return nullptr; 61 return nullptr;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 112 }
108 113
109 bool InfoBarDelegate::ShouldExpireInternal( 114 bool InfoBarDelegate::ShouldExpireInternal(
110 const NavigationDetails& details) const { 115 const NavigationDetails& details) const {
111 // NOTE: If you change this, be sure to check and adjust the behavior of 116 // NOTE: If you change this, be sure to check and adjust the behavior of
112 // anyone who overrides this as necessary! 117 // anyone who overrides this as necessary!
113 return (contents_unique_id_ != details.entry_id) || details.is_reload; 118 return (contents_unique_id_ != details.entry_id) || details.is_reload;
114 } 119 }
115 120
116 } // namespace infobars 121 } // namespace infobars
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698