Chromium Code Reviews| Index: mojo/examples/window_manager/debug_panel.cc |
| diff --git a/mojo/examples/window_manager/debug_panel.cc b/mojo/examples/window_manager/debug_panel.cc |
| index 1648d0c53fa230c45b31f11d50d433c65ad9697a..022695d132ebe166a2ad5c331c4701208d4f7d1e 100644 |
| --- a/mojo/examples/window_manager/debug_panel.cc |
| +++ b/mojo/examples/window_manager/debug_panel.cc |
| @@ -35,7 +35,6 @@ DebugPanel::DebugPanel(Delegate* delegate, View* view) |
| base::ASCIIToUTF16("Source window"), kNavigationTargetGroupId)), |
| navigation_target_default_(new views::RadioButton( |
| base::ASCIIToUTF16("Default"), kNavigationTargetGroupId)), |
| - next_color_(0), |
| colored_square_(new views::BlueButton( |
| this, base::ASCIIToUTF16("Local nav test"))), |
| close_last_(new views::BlueButton( |
| @@ -117,8 +116,7 @@ void DebugPanel::Layout(views::View* view) { |
| void DebugPanel::ButtonPressed(views::Button* sender, const ui::Event& event) { |
| if (sender == colored_square_) { |
| - Navigate(base::StringPrintf("mojo://mojo_embedded_app/%x", |
| - kColors[next_color_ % arraysize(kColors)])); |
| + Navigate("mojo://mojo_embedded_app/"); |
| next_color_++; |
|
sky
2014/09/02 15:47:15
You removed next_color_ from the initializer. Shou
Aaron Boodman
2014/09/02 19:10:44
ah yes, thanks.
|
| } else if (sender == close_last_) { |
| delegate_->CloseTopWindow(); |