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

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
« no previous file with comments | « chrome/browser/mojo_runner_util.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/mojo_runner_util.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698