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

Unified Diff: mash/browser/browser.cc

Issue 2101323003: mash: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/browser/browser.cc
diff --git a/mash/browser/browser.cc b/mash/browser/browser.cc
index 63d005af5e1ceddf0a664880f34f85c44c99428c..814bcd33d33398d0984cfabe48c2b081ad2b5197 100644
--- a/mash/browser/browser.cc
+++ b/mash/browser/browser.cc
@@ -179,14 +179,14 @@ class TabStrip : public views::View,
AddChildView(new_tab_button_);
}
~TabStrip() override {
- for (auto tab : tabs_)
+ for (auto* tab : tabs_)
RemoveObserver(tab);
}
void SetContainerWindow(mus::Window* container) {
DCHECK(!container_);
container_ = container;
- for (auto tab : tabs_) {
+ for (auto* tab : tabs_) {
mus::Window* window = container_->window_tree()->NewWindow();
container_->AddChild(window);
tab->SetWindow(window);
@@ -669,7 +669,7 @@ class UI : public views::WidgetDelegateView,
int height = local_bounds.height() - y - debug_view_height;
content_area_->SetBounds(
gfx::Rect(offset.x(), offset.y(), width, height));
- for (auto child : content_area_->children())
+ for (auto* child : content_area_->children())
child->SetBounds(gfx::Rect(0, 0, width, height));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698