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

Unified Diff: apps/app_restore_service.cc

Issue 11829055: Create top level apps component and move some apps code there. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 7 years, 11 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 | « apps/app_restore_service.h ('k') | apps/app_restore_service_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_restore_service.cc
diff --git a/chrome/browser/extensions/app_restore_service.cc b/apps/app_restore_service.cc
similarity index 93%
rename from chrome/browser/extensions/app_restore_service.cc
rename to apps/app_restore_service.cc
index b5c3e3529297e7501dca9df4f1139caaf6615fe1..554f8737371ba25c0980ade3b8c953762a33c16d 100644
--- a/chrome/browser/extensions/app_restore_service.cc
+++ b/apps/app_restore_service.cc
@@ -2,24 +2,27 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/app_restore_service.h"
+#include "apps/app_restore_service.h"
#include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h"
#include "chrome/browser/extensions/event_router.h"
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_system.h"
-#include "chrome/browser/prefs/pref_service.h"
-#include "chrome/browser/prefs/scoped_user_pref_update.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_set.h"
-#include "chrome/common/chrome_notification_types.h"
-#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
-namespace extensions {
+using extensions::AppEventRouter;
+using extensions::Extension;
+using extensions::ExtensionHost;
+using extensions::ExtensionPrefs;
+using extensions::ExtensionSystem;
+
+namespace apps {
AppRestoreService::AppRestoreService(Profile* profile)
: profile_(profile) {
@@ -97,4 +100,4 @@ void AppRestoreService::RestoreApp(const Extension* extension) {
AppEventRouter::DispatchOnRestartedEvent(profile_, extension);
}
-} // namespace extensions
+} // namespace apps
« no previous file with comments | « apps/app_restore_service.h ('k') | apps/app_restore_service_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698