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

Side by Side Diff: chrome/browser/chromeos/system/ash_system_tray_delegate.cc

Issue 17494004: Update Managed user strings for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 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 | Annotate | Revision Log
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/system/ash_system_tray_delegate.h" 5 #include "chrome/browser/chromeos/system/ash_system_tray_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 UTF8ToUTF16(GetEnterpriseDomain())); 457 UTF8ToUTF16(GetEnterpriseDomain()));
458 } 458 }
459 459
460 virtual const std::string GetLocallyManagedUserManager() const OVERRIDE { 460 virtual const std::string GetLocallyManagedUserManager() const OVERRIDE {
461 if (GetUserLoginStatus() != ash::user::LOGGED_IN_LOCALLY_MANAGED) 461 if (GetUserLoginStatus() != ash::user::LOGGED_IN_LOCALLY_MANAGED)
462 return std::string(); 462 return std::string();
463 return UserManager::Get()->GetManagerUserIdForManagedUser( 463 return UserManager::Get()->GetManagerUserIdForManagedUser(
464 chromeos::UserManager::Get()->GetActiveUser()->email()); 464 chromeos::UserManager::Get()->GetActiveUser()->email());
465 } 465 }
466 466
467 virtual const string16 GetLocallyManagedUserManagerName() const OVERRIDE {
468 if (GetUserLoginStatus() != ash::user::LOGGED_IN_LOCALLY_MANAGED)
469 return string16();
470 return UserManager::Get()->GetManagerDisplayNameForManagedUser(
471 chromeos::UserManager::Get()->GetActiveUser()->email());
472 }
473
467 virtual const string16 GetLocallyManagedUserMessage() const OVERRIDE { 474 virtual const string16 GetLocallyManagedUserMessage() const OVERRIDE {
468 if (GetUserLoginStatus() != ash::user::LOGGED_IN_LOCALLY_MANAGED) 475 if (GetUserLoginStatus() != ash::user::LOGGED_IN_LOCALLY_MANAGED)
469 return string16(); 476 return string16();
470 return l10n_util::GetStringFUTF16(IDS_USER_IS_LOCALLY_MANAGED_BY_NOTICE, 477 return l10n_util::GetStringFUTF16(IDS_USER_IS_LOCALLY_MANAGED_BY_NOTICE,
471 UTF8ToUTF16( 478 GetLocallyManagedUserManagerName());
472 GetLocallyManagedUserManager()));
473 } 479 }
474 480
475 virtual bool SystemShouldUpgrade() const OVERRIDE { 481 virtual bool SystemShouldUpgrade() const OVERRIDE {
476 return UpgradeDetector::GetInstance()->notify_upgrade(); 482 return UpgradeDetector::GetInstance()->notify_upgrade();
477 } 483 }
478 484
479 virtual base::HourClockType GetHourClockType() const OVERRIDE { 485 virtual base::HourClockType GetHourClockType() const OVERRIDE {
480 return clock_type_; 486 return clock_type_;
481 } 487 }
482 488
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegate); 1328 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegate);
1323 }; 1329 };
1324 1330
1325 } // namespace 1331 } // namespace
1326 1332
1327 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { 1333 ash::SystemTrayDelegate* CreateSystemTrayDelegate() {
1328 return new chromeos::SystemTrayDelegate(); 1334 return new chromeos::SystemTrayDelegate();
1329 } 1335 }
1330 1336
1331 } // namespace chromeos 1337 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/resources/chromeos/login/screen_locally_managed_user_creation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698