Commit c5d5878e authored by bruthig's avatar bruthig Committed by Commit bot

Removed unused TrayItemMore::ReplaceIcon().

BUG=None

Review-Url: https://codereview.chromium.org/2233963002
Cr-Commit-Position: refs/heads/master@{#418974}
parent bdd15909
......@@ -23,9 +23,9 @@ namespace ash {
TrayItemMore::TrayItemMore(SystemTrayItem* owner, bool show_more)
: owner_(owner),
show_more_(show_more),
icon_(NULL),
label_(NULL),
more_(NULL) {
icon_(nullptr),
label_(nullptr),
more_(nullptr) {
SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal,
kTrayPopupPaddingHorizontal, 0,
kTrayPopupPaddingBetweenItems));
......@@ -69,12 +69,6 @@ void TrayItemMore::SetAccessibleName(const base::string16& name) {
accessible_name_ = name;
}
void TrayItemMore::ReplaceIcon(views::View* view) {
delete icon_;
icon_ = NULL;
AddChildViewAt(view, 0);
}
bool TrayItemMore::PerformAction(const ui::Event& event) {
if (!show_more_)
return false;
......
......@@ -31,12 +31,6 @@ class TrayItemMore : public ActionableView {
void SetImage(const gfx::ImageSkia& image_skia);
void SetAccessibleName(const base::string16& name);
protected:
// Replaces the default icon (on the left of the label), and allows a custom
// view to be placed there. Once the default icon is replaced, |SetImage|
// should never be called.
void ReplaceIcon(views::View* view);
private:
// Overridden from ActionableView.
bool PerformAction(const ui::Event& event) override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment