Index: chrome/browser/mojo_runner_util.cc |
diff --git a/chrome/browser/ui/browser_dialogs_mac.cc b/chrome/browser/mojo_runner_util.cc |
similarity index 55% |
copy from chrome/browser/ui/browser_dialogs_mac.cc |
copy to chrome/browser/mojo_runner_util.cc |
index cf79ad9561df3e45aa4c2970ecb2359b40332faa..ec6560e480fb7133021eca3e06f195dcce0989dc 100644 |
--- a/chrome/browser/ui/browser_dialogs_mac.cc |
+++ b/chrome/browser/mojo_runner_util.cc |
@@ -2,16 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/ui/browser_dialogs.h" |
+#include "chrome/browser/mojo_runner_util.h" |
#include "base/command_line.h" |
-#include "chrome/common/chrome_switches.h" |
-namespace chrome { |
- |
-bool ToolkitViewsDialogsEnabled() { |
+bool IsRunningInMojoRunner() { |
return base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableMacViewsDialogs); |
+ "mojo-platform-channel-handle"); |
} |
- |
-} // namespace chrome |