| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/status/network_menu.h" | 5 #include "chrome/browser/chromeos/status/network_menu.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 | 10 |
| 9 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 10 #include "ash/shell_delegate.h" | 12 #include "ash/shell_delegate.h" |
| 11 #include "ash/strings/grit/ash_strings.h" | 13 #include "ash/strings/grit/ash_strings.h" |
| 12 #include "base/bind.h" | 14 #include "base/bind.h" |
| 13 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
| 14 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 16 #include "chrome/browser/chromeos/mobile_config.h" | 19 #include "chrome/browser/chromeos/mobile_config.h" |
| 17 #include "chrome/browser/chromeos/options/network_config_view.h" | 20 #include "chrome/browser/chromeos/options/network_config_view.h" |
| 18 #include "chrome/browser/chromeos/sim_dialog_delegate.h" | 21 #include "chrome/browser/chromeos/sim_dialog_delegate.h" |
| 19 #include "chrome/browser/chromeos/ui/choose_mobile_network_dialog.h" | 22 #include "chrome/browser/chromeos/ui/choose_mobile_network_dialog.h" |
| 20 #include "chrome/browser/defaults.h" | 23 #include "chrome/browser/defaults.h" |
| 21 #include "chrome/browser/profiles/profile_manager.h" | 24 #include "chrome/browser/profiles/profile_manager.h" |
| 22 #include "chrome/common/url_constants.h" | 25 #include "chrome/common/url_constants.h" |
| 23 #include "chrome/grit/generated_resources.h" | 26 #include "chrome/grit/generated_resources.h" |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 return main_menu_model_.get(); | 677 return main_menu_model_.get(); |
| 675 } | 678 } |
| 676 | 679 |
| 677 void NetworkMenu::UpdateMenu() { | 680 void NetworkMenu::UpdateMenu() { |
| 678 refreshing_menu_ = true; | 681 refreshing_menu_ = true; |
| 679 main_menu_model_->InitMenuItems(delegate_->ShouldOpenButtonOptions()); | 682 main_menu_model_->InitMenuItems(delegate_->ShouldOpenButtonOptions()); |
| 680 refreshing_menu_ = false; | 683 refreshing_menu_ = false; |
| 681 } | 684 } |
| 682 | 685 |
| 683 } // namespace chromeos | 686 } // namespace chromeos |
| OLD | NEW |