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

Unified Diff: apps/app_window.cc

Issue 171523005: BACKUP: NativeAppWindowView - before splitting CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « no previous file | apps/apps.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_window.cc
diff --git a/apps/app_window.cc b/apps/app_window.cc
index d13500d500d152e2d8eced98068d35965ca71962..e3b55dabdd467eccd228cc8935d2dc6ea018df9a 100644
--- a/apps/app_window.cc
+++ b/apps/app_window.cc
@@ -6,6 +6,7 @@
#include "apps/app_window_geometry_cache.h"
#include "apps/app_window_registry.h"
+#include "apps/apps_client.h"
#include "apps/ui/native_app_window.h"
#include "base/command_line.h"
#include "base/strings/string_util.h"
@@ -14,7 +15,6 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/extensions/extension_web_contents_observer.h"
#include "chrome/browser/extensions/suggest_permission_util.h"
-#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_messages.h"
#include "chrome/common/extensions/manifest_handlers/icons_handler.h"
@@ -231,7 +231,7 @@ void AppWindow::Init(const GURL& url,
}
// Prevent the browser process from shutting down while this window is open.
- chrome::StartKeepAlive();
+ AppsClient::Get()->StartKeepAlive();
UpdateExtensionAppIcon();
@@ -244,7 +244,7 @@ AppWindow::~AppWindow() {
registrar_.RemoveAll();
// Remove shutdown prevention.
- chrome::EndKeepAlive();
+ AppsClient::Get()->EndKeepAlive();
}
void AppWindow::RequestMediaAccessPermission(
« no previous file with comments | « no previous file | apps/apps.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698