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

Side by Side Diff: chrome/browser/chromeos/status/network_menu.cc

Issue 2913103002: Add Tether to Mobile NetworkTypePattern. (Closed)
Patch Set: Add Tether to Mobile NetworkTypePattern. Created 3 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 unified diff | Download patch
« no previous file with comments | « ash/system/network/network_list.cc ('k') | chromeos/network/network_connect.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 const gfx::ImageSkia icon = 464 const gfx::ImageSkia icon =
465 ash::network_icon::GetImageForDisconnectedCellNetwork(); 465 ash::network_icon::GetImageForDisconnectedCellNetwork();
466 menu_items_.push_back(MenuItem( 466 menu_items_.push_back(MenuItem(
467 ui::MenuModel::TYPE_COMMAND, 467 ui::MenuModel::TYPE_COMMAND,
468 l10n_util::GetStringUTF16( 468 l10n_util::GetStringUTF16(
469 IDS_OPTIONS_SETTINGS_OTHER_CELLULAR_NETWORKS), 469 IDS_OPTIONS_SETTINGS_OTHER_CELLULAR_NETWORKS),
470 icon, std::string(), FLAG_ADD_CELLULAR)); 470 icon, std::string(), FLAG_ADD_CELLULAR));
471 } 471 }
472 } else { 472 } else {
473 int initializing_message_id = 473 int initializing_message_id =
474 ash::network_icon::GetCellularUninitializedMsg(); 474 ash::network_icon::GetMobileUninitializedMsg();
475 if (initializing_message_id) { 475 if (initializing_message_id) {
476 // Initializing cellular modem... 476 // Initializing cellular modem...
477 AddMessageItem(l10n_util::GetStringUTF16(initializing_message_id)); 477 AddMessageItem(l10n_util::GetStringUTF16(initializing_message_id));
478 } 478 }
479 } 479 }
480 480
481 // Wimax Networks 481 // Wimax Networks
482 if (handler->IsTechnologyEnabled(NetworkTypePattern::Wimax())) { 482 if (handler->IsTechnologyEnabled(NetworkTypePattern::Wimax())) {
483 // List Wimax networks. 483 // List Wimax networks.
484 for (NetworkStateHandler::NetworkStateList::const_iterator iter = 484 for (NetworkStateHandler::NetworkStateList::const_iterator iter =
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 return main_menu_model_.get(); 676 return main_menu_model_.get();
677 } 677 }
678 678
679 void NetworkMenu::UpdateMenu() { 679 void NetworkMenu::UpdateMenu() {
680 refreshing_menu_ = true; 680 refreshing_menu_ = true;
681 main_menu_model_->InitMenuItems(delegate_->ShouldOpenButtonOptions()); 681 main_menu_model_->InitMenuItems(delegate_->ShouldOpenButtonOptions());
682 refreshing_menu_ = false; 682 refreshing_menu_ = false;
683 } 683 }
684 684
685 } // namespace chromeos 685 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/system/network/network_list.cc ('k') | chromeos/network/network_connect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698