Index: chrome/browser/ui/app_list/app_list_view_delegate.cc |
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
index af012b2907019a935f8a740d7c3db45874cb71fb..1ed2e7fde7798c1291ec7072a04fa838a9f35619 100644 |
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc |
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
@@ -12,6 +12,7 @@ |
#include "base/files/file_path.h" |
#include "base/metrics/user_metrics.h" |
#include "base/stl_util.h" |
+#include "chrome/browser/apps/scoped_keep_alive.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/profiles/profile_info_cache.h" |
@@ -286,7 +287,8 @@ void AppListViewDelegate::SetUpCustomLauncherPages() { |
std::string extension_id = it->host(); |
apps::CustomLauncherPageContents* page_contents = |
new apps::CustomLauncherPageContents( |
- scoped_ptr<extensions::AppDelegate>(new ChromeAppDelegate), |
+ scoped_ptr<extensions::AppDelegate>( |
+ new ChromeAppDelegate(scoped_ptr<ScopedKeepAlive>())), |
extension_id); |
page_contents->Initialize(profile_, *it); |
custom_page_contents_.push_back(page_contents); |