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

Unified Diff: chrome/browser/ui/apps/chrome_apps_client.cc

Issue 494483006: Remove chrome dependencies from app_window_api.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/apps/chrome_apps_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/apps/chrome_apps_client.cc
diff --git a/chrome/browser/ui/apps/chrome_apps_client.cc b/chrome/browser/ui/apps/chrome_apps_client.cc
index d7c6c53dc2be5be8e2fe8b4ab883bcd43e7d83b6..1760a6df9c2da71876eabde0f503ada21d5b9e84 100644
--- a/chrome/browser/ui/apps/chrome_apps_client.cc
+++ b/chrome/browser/ui/apps/chrome_apps_client.cc
@@ -7,7 +7,9 @@
#include "apps/app_window.h"
#include "base/memory/singleton.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/devtools/devtools_window.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/common/extensions/features/feature_channel.h"
#include "extensions/common/extension.h"
// TODO(jamescook): We probably shouldn't compile this class at all on Android.
@@ -68,3 +70,14 @@ void ChromeAppsClient::DecrementKeepAliveCount() {
chrome::DecrementKeepAliveCount();
#endif
}
+
+void ChromeAppsClient::OpenDevToolsWindow(content::WebContents* web_contents,
+ const base::Closure& callback) {
+ DevToolsWindow* devtools_window = DevToolsWindow::OpenDevToolsWindow(
+ web_contents, DevToolsToggleAction::ShowConsole());
+ devtools_window->SetLoadCompletedCallback(callback);
+}
+
+bool ChromeAppsClient::IsCurrentChannelOlderThanDev() {
+ return extensions::GetCurrentChannel() > chrome::VersionInfo::CHANNEL_DEV;
+}
« no previous file with comments | « chrome/browser/ui/apps/chrome_apps_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698