| OLD | NEW |
| 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/website_settings/chosen_object_row.h" | 5 #include "chrome/browser/ui/views/website_settings/chosen_object_row.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/views/website_settings/chosen_object_row_observer.h" | 7 #include "chrome/browser/ui/views/website_settings/chosen_object_row_observer.h" |
| 8 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h
" | 8 #include "chrome/browser/ui/views/website_settings/website_settings_popup_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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const ui::Event& event) { | 71 const ui::Event& event) { |
| 72 // Change the icon to reflect the selected setting. | 72 // Change the icon to reflect the selected setting. |
| 73 const gfx::Image& image = | 73 const gfx::Image& image = |
| 74 WebsiteSettingsUI::GetChosenObjectIcon(*info_, true); | 74 WebsiteSettingsUI::GetChosenObjectIcon(*info_, true); |
| 75 icon_->SetImage(image.ToImageSkia()); | 75 icon_->SetImage(image.ToImageSkia()); |
| 76 | 76 |
| 77 RemoveChildView(delete_button_); | 77 RemoveChildView(delete_button_); |
| 78 delete delete_button_; | 78 delete delete_button_; |
| 79 delete_button_ = nullptr; | 79 delete_button_ = nullptr; |
| 80 | 80 |
| 81 FOR_EACH_OBSERVER(ChosenObjectRowObserver, observer_list_, | 81 for (ChosenObjectRowObserver& observer : observer_list_) |
| 82 OnChosenObjectDeleted(*info_)); | 82 observer.OnChosenObjectDeleted(*info_); |
| 83 } | 83 } |
| OLD | NEW |