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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_common.cc

Issue 1128173005: Clean up ProfileManager interface. Base URL: https://chromium.googlesource.com/chromium/src@issue479309
Patch Set: sync Created 5 years, 7 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
Index: chrome/browser/ui/ash/system_tray_delegate_common.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_common.cc b/chrome/browser/ui/ash/system_tray_delegate_common.cc
index fa6b9e630a36fe1a32def17c1d953d0a8c069f32..d253ea9eea2a17a86c9a3bbd259aee316b0997e6 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_common.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_common.cc
@@ -11,6 +11,7 @@
#include "ash/system/tray/system_tray_notifier.h"
#include "ash/volume_control_delegate.h"
#include "base/time/time.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -87,9 +88,9 @@ void SystemTrayDelegateCommon::ShowChromeSlow() {
}
void SystemTrayDelegateCommon::ShowHelp() {
- chrome::ShowHelpForProfile(ProfileManager::GetLastUsedProfile(),
- chrome::HOST_DESKTOP_TYPE_ASH,
- chrome::HELP_SOURCE_MENU);
+ chrome::ShowHelpForProfile(
+ g_browser_process->profile_manager()->GetLastUsedProfile(),
+ chrome::HOST_DESKTOP_TYPE_ASH, chrome::HELP_SOURCE_MENU);
}
void SystemTrayDelegateCommon::RequestRestartForUpdate() {
« no previous file with comments | « chrome/browser/ui/ash/app_list/app_list_service_ash.cc ('k') | chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698