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

Side by Side Diff: chrome/browser/ui/views/page_info/chosen_object_row.cc

Issue 2946323003: Page Info: Add brackets in to one line if and for statements (Closed)
Patch Set: Added "Page Info:", clarifying the scope of the change, into the commit message Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/page_info/page_info_bubble_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ui/views/page_info/chosen_object_row.h" 5 #include "chrome/browser/ui/views/page_info/chosen_object_row.h"
6 6
7 #include "chrome/browser/ui/views/page_info/chosen_object_row_observer.h" 7 #include "chrome/browser/ui/views/page_info/chosen_object_row_observer.h"
8 #include "chrome/browser/ui/views/page_info/page_info_bubble_view.h" 8 #include "chrome/browser/ui/views/page_info/page_info_bubble_view.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 void ChosenObjectRow::ButtonPressed(views::Button* sender, 69 void ChosenObjectRow::ButtonPressed(views::Button* sender,
70 const ui::Event& event) { 70 const ui::Event& event) {
71 // Change the icon to reflect the selected setting. 71 // Change the icon to reflect the selected setting.
72 const gfx::Image& image = PageInfoUI::GetChosenObjectIcon(*info_, true); 72 const gfx::Image& image = PageInfoUI::GetChosenObjectIcon(*info_, true);
73 icon_->SetImage(image.ToImageSkia()); 73 icon_->SetImage(image.ToImageSkia());
74 74
75 DCHECK(delete_button_->visible()); 75 DCHECK(delete_button_->visible());
76 delete_button_->SetVisible(false); 76 delete_button_->SetVisible(false);
77 77
78 for (ChosenObjectRowObserver& observer : observer_list_) 78 for (ChosenObjectRowObserver& observer : observer_list_) {
79 observer.OnChosenObjectDeleted(*info_); 79 observer.OnChosenObjectDeleted(*info_);
80 }
80 } 81 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/page_info/page_info_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698