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

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

Issue 1960293003: Remove OS_CHROMEOS from ui/ash code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « chrome/browser/ui/ash/ash_util.h ('k') | chrome/browser/ui/ash/chrome_new_window_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/ash_util.cc
diff --git a/chrome/browser/ui/ash/ash_util.cc b/chrome/browser/ui/ash/ash_util.cc
index ee36f53dc6b65b74221460487ccc1f3d0303cf1c..4476c8e0112f0821ab4d9a980e8180add8f7b332 100644
--- a/chrome/browser/ui/ash/ash_util.cc
+++ b/chrome/browser/ui/ash/ash_util.cc
@@ -17,15 +17,11 @@
namespace chrome {
bool ShouldOpenAshOnStartup() {
-#if defined(OS_CHROMEOS)
return !IsRunningInMash();
-#else
- return false;
-#endif
}
bool IsRunningInMash() {
-#if defined(OS_CHROMEOS) && defined(MOJO_SHELL_CLIENT)
+#if defined(MOJO_SHELL_CLIENT)
return content::MojoShellConnection::Get() &&
content::MojoShellConnection::Get()->UsingExternalShell();
#else
@@ -33,31 +29,6 @@ bool IsRunningInMash() {
#endif
}
-bool IsNativeViewInAsh(gfx::NativeView native_view) {
-#if defined(OS_CHROMEOS)
- // Optimization. There is only ash on ChromeOS.
- return true;
-#endif
-
- if (!ash::Shell::HasInstance())
- return false;
-
- aura::Window::Windows root_windows =
- ash::Shell::GetInstance()->GetAllRootWindows();
-
- for (aura::Window::Windows::const_iterator it = root_windows.begin();
- it != root_windows.end(); ++it) {
- if ((*it)->Contains(native_view))
- return true;
- }
-
- return false;
-}
-
-bool IsNativeWindowInAsh(gfx::NativeWindow native_window) {
- return IsNativeViewInAsh(native_window);
-}
-
bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator) {
// When running in mash the browser doesn't handle ash accelerators.
if (chrome::IsRunningInMash())
« no previous file with comments | « chrome/browser/ui/ash/ash_util.h ('k') | chrome/browser/ui/ash/chrome_new_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698