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

Unified Diff: chrome/browser/mojo_runner_util.cc

Issue 1423063004: Allow Chrome to bind an Application request from mojo_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@callback
Patch Set: . Created 5 years, 1 month 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/mojo_runner_util.cc
diff --git a/chrome/browser/ui/browser_dialogs_mac.cc b/chrome/browser/mojo_runner_util.cc
similarity index 64%
copy from chrome/browser/ui/browser_dialogs_mac.cc
copy to chrome/browser/mojo_runner_util.cc
index cf79ad9561df3e45aa4c2970ecb2359b40332faa..5b6228035921833bc6023aa40bc493ca05b3dde4 100644
--- a/chrome/browser/ui/browser_dialogs_mac.cc
+++ b/chrome/browser/mojo_runner_util.cc
@@ -2,16 +2,15 @@
// 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

Powered by Google App Engine
This is Rietveld 408576698