OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/chooser_controller/chooser_controller.h" | 5 #include "chrome/browser/chooser_controller/chooser_controller.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "components/url_formatter/elide_url.h" | 8 #include "components/url_formatter/elide_url.h" |
9 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 base::UTF8ToUTF16(extension->name())); | 43 base::UTF8ToUTF16(extension->name())); |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 return l10n_util::GetStringFUTF16( | 48 return l10n_util::GetStringFUTF16( |
49 title_string_id_origin_, | 49 title_string_id_origin_, |
50 url_formatter::FormatOriginForSecurityDisplay( | 50 url_formatter::FormatOriginForSecurityDisplay( |
51 origin, url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC)); | 51 origin, url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC)); |
52 } | 52 } |
| 53 |
| 54 bool ChooserController::ShouldShowIconBeforeText() const { |
| 55 return false; |
| 56 } |
| 57 |
| 58 int ChooserController::GetSignalStrengthLevel(size_t index) const { |
| 59 return -1; |
| 60 } |
OLD | NEW |