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

Unified Diff: chrome/browser/chromeos/login/ui/webui_login_view.cc

Issue 2718333002: Move ash_util functions from 'chrome' namespace to 'ash_util' namespace (Closed)
Patch Set: Rebase after https://codereview.chromium.org/2721883002 Created 3 years, 10 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/chromeos/login/ui/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/ui/webui_login_view.cc b/chrome/browser/chromeos/login/ui/webui_login_view.cc
index fe31a9526572341ed32dbb72abb0d4fd932df982..1c691514f8813ddc9dbf65c0a101f265405c35f4 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.cc
@@ -178,7 +178,7 @@ WebUILoginView::~WebUILoginView() {
for (auto& observer : observer_list_)
observer.OnHostDestroying();
- if (!chrome::IsRunningInMash() &&
+ if (!ash_util::IsRunningInMash() &&
ash::Shell::GetInstance()->HasPrimaryStatusArea()) {
ash::Shell::GetInstance()->GetPrimarySystemTray()->SetNextFocusableView(
nullptr);
@@ -323,7 +323,7 @@ void WebUILoginView::LoadURL(const GURL& url) {
web_view()->RequestFocus();
// There is no Shell instance while running in mash.
- if (chrome::IsRunningInMash())
+ if (ash_util::IsRunningInMash())
return;
}
@@ -459,7 +459,7 @@ bool WebUILoginView::TakeFocus(content::WebContents* source, bool reverse) {
// Focus is accepted, but the Ash system tray is not available in Mash, so
// exit early.
- if (chrome::IsRunningInMash())
+ if (ash_util::IsRunningInMash())
return true;
ash::SystemTray* tray = ash::Shell::GetInstance()->GetPrimarySystemTray();

Powered by Google App Engine
This is Rietveld 408576698