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

Unified Diff: chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc

Issue 1376063005: Cleanup: Pull some browser keep alive functions into its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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/extensions/api/tabs/tabs_api.cc ('k') | chrome/browser/lifetime/application_lifetime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc
diff --git a/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc b/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc
index 071d448fad821c079b4eca487038103fbb3086e7..e945131727a08833dae72abbc568bd0762a5950f 100644
--- a/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc
+++ b/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/apps/scoped_keep_alive.h"
#include "chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h"
+#include "chrome/browser/lifetime/browser_keep_alive.h"
#include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
#include "chrome/browser/ui/apps/chrome_app_delegate.h"
#include "components/renderer_context_menu/context_menu_delegate.h"
@@ -30,7 +30,8 @@ bool ChromeAppViewGuestDelegate::HandleContextMenu(
}
AppDelegate* ChromeAppViewGuestDelegate::CreateAppDelegate() {
- return new ChromeAppDelegate(make_scoped_ptr(new ScopedKeepAlive));
+ return new ChromeAppDelegate(
+ make_scoped_ptr(new browser_lifetime::ScopedKeepAlive));
}
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | chrome/browser/lifetime/application_lifetime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698