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

Unified Diff: chrome/browser/chromeos/status/network_menu.cc

Issue 351353004: chromeos: Move some network related UI in ui/chromeos/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-build Created 6 years, 5 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 | « ash/system/chromeos/network/tray_vpn.cc ('k') | chrome/browser/ui/webui/chromeos/login/network_dropdown.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/network_menu.cc
diff --git a/chrome/browser/chromeos/status/network_menu.cc b/chrome/browser/chromeos/status/network_menu.cc
index 63b48d78319704e5eabc1c985f63d38cc54d682a..8f4c81a106b8757f35e27e4778b2852e517ac1ae 100644
--- a/chrome/browser/chromeos/status/network_menu.cc
+++ b/chrome/browser/chromeos/status/network_menu.cc
@@ -9,7 +9,6 @@
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ash/system/chromeos/network/network_connect.h"
-#include "ash/system/chromeos/network/network_icon.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
@@ -32,6 +31,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/menu_model.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/chromeos/network/network_icon.h"
#include "ui/gfx/image/image_skia.h"
namespace chromeos {
@@ -363,8 +363,8 @@ void MainMenuModel::AddWirelessNetworkMenuItem(const NetworkState* network,
if (ShouldHighlightNetwork(network))
flag |= FLAG_ASSOCIATED;
- const gfx::ImageSkia icon = ash::network_icon::GetImageForNetwork(
- network, ash::network_icon::ICON_TYPE_LIST);
+ const gfx::ImageSkia icon = ui::network_icon::GetImageForNetwork(
+ network, ui::network_icon::ICON_TYPE_LIST);
menu_items_.push_back(
MenuItem(ui::MenuModel::TYPE_COMMAND,
label, icon, network->path(), flag));
@@ -403,8 +403,8 @@ void MainMenuModel::InitMenuItems(bool should_open_button_options) {
int flag = FLAG_ETHERNET;
if (ShouldHighlightNetwork(ethernet_network))
flag |= FLAG_ASSOCIATED;
- const gfx::ImageSkia icon = ash::network_icon::GetImageForNetwork(
- ethernet_network, ash::network_icon::ICON_TYPE_LIST);
+ const gfx::ImageSkia icon = ui::network_icon::GetImageForNetwork(
+ ethernet_network, ui::network_icon::ICON_TYPE_LIST);
menu_items_.push_back(MenuItem(ui::MenuModel::TYPE_COMMAND,
label, icon, std::string(), flag));
}
@@ -444,8 +444,8 @@ void MainMenuModel::InitMenuItems(bool should_open_button_options) {
bool isActive = ShouldHighlightNetwork(network);
if (isActive)
flag |= FLAG_ASSOCIATED;
- const gfx::ImageSkia icon = ash::network_icon::GetImageForNetwork(
- network, ash::network_icon::ICON_TYPE_LIST);
+ const gfx::ImageSkia icon = ui::network_icon::GetImageForNetwork(
+ network, ui::network_icon::ICON_TYPE_LIST);
menu_items_.push_back(
MenuItem(ui::MenuModel::TYPE_COMMAND,
label, icon, network->path(), flag));
@@ -456,8 +456,8 @@ void MainMenuModel::InitMenuItems(bool should_open_button_options) {
handler->GetDeviceStateByType(NetworkTypePattern::Cellular());
if (cellular_device && cellular_device->support_network_scan()) {
const gfx::ImageSkia icon =
- ash::network_icon::GetImageForDisconnectedNetwork(
- ash::network_icon::ICON_TYPE_LIST, shill::kTypeCellular);
+ ui::network_icon::GetImageForDisconnectedNetwork(
+ ui::network_icon::ICON_TYPE_LIST, shill::kTypeCellular);
menu_items_.push_back(MenuItem(
ui::MenuModel::TYPE_COMMAND,
l10n_util::GetStringUTF16(
@@ -466,7 +466,7 @@ void MainMenuModel::InitMenuItems(bool should_open_button_options) {
}
} else {
int initializing_message_id =
- ash::network_icon::GetCellularUninitializedMsg();
+ ui::network_icon::GetCellularUninitializedMsg();
if (initializing_message_id) {
// Initializing cellular modem...
AddMessageItem(l10n_util::GetStringUTF16(initializing_message_id));
@@ -505,9 +505,8 @@ void MainMenuModel::InitMenuItems(bool should_open_button_options) {
}
if (scanning_msg)
AddMessageItem(l10n_util::GetStringUTF16(scanning_msg));
- const gfx::ImageSkia icon =
- ash::network_icon::GetImageForConnectedNetwork(
- ash::network_icon::ICON_TYPE_LIST, shill::kTypeWifi);
+ const gfx::ImageSkia icon = ui::network_icon::GetImageForConnectedNetwork(
+ ui::network_icon::ICON_TYPE_LIST, shill::kTypeWifi);
menu_items_.push_back(MenuItem(
ui::MenuModel::TYPE_COMMAND,
l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_OTHER_WIFI_NETWORKS),
« no previous file with comments | « ash/system/chromeos/network/tray_vpn.cc ('k') | chrome/browser/ui/webui/chromeos/login/network_dropdown.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698