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

Side by Side Diff: chrome/browser/chooser_controller/chooser_controller.cc

Issue 2390823005: Update device permissions dialog ui for Chrome apps and extensions (Closed)
Patch Set: address more comments Created 4 years 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 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/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "components/url_formatter/elide_url.h" 9 #include "components/url_formatter/elide_url.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return l10n_util::GetStringFUTF16( 49 return l10n_util::GetStringFUTF16(
50 title_string_id_origin_, 50 title_string_id_origin_,
51 url_formatter::FormatOriginForSecurityDisplay( 51 url_formatter::FormatOriginForSecurityDisplay(
52 origin, url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC)); 52 origin, url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC));
53 } 53 }
54 54
55 bool ChooserController::ShouldShowIconBeforeText() const { 55 bool ChooserController::ShouldShowIconBeforeText() const {
56 return false; 56 return false;
57 } 57 }
58 58
59 bool ChooserController::ShouldShowFootnoteView() const {
60 return true;
61 }
62
59 bool ChooserController::AllowMultipleSelection() const { 63 bool ChooserController::AllowMultipleSelection() const {
60 return false; 64 return false;
61 } 65 }
62 66
63 int ChooserController::GetSignalStrengthLevel(size_t index) const { 67 int ChooserController::GetSignalStrengthLevel(size_t index) const {
64 return -1; 68 return -1;
65 } 69 }
66 70
67 bool ChooserController::IsConnected(size_t index) const { 71 bool ChooserController::IsConnected(size_t index) const {
68 return false; 72 return false;
69 } 73 }
70 74
71 bool ChooserController::IsPaired(size_t index) const { 75 bool ChooserController::IsPaired(size_t index) const {
72 return false; 76 return false;
73 } 77 }
74 78
75 void ChooserController::OpenAdapterOffHelpUrl() const { 79 void ChooserController::OpenAdapterOffHelpUrl() const {
76 NOTREACHED(); 80 NOTREACHED();
77 } 81 }
OLDNEW
« no previous file with comments | « chrome/browser/chooser_controller/chooser_controller.h ('k') | chrome/browser/extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698