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

Side by Side Diff: chrome/browser/extensions/app_data_migrator.h

Issue 671873004: Migrates legacy packaged app data when it's upgraded to a platform app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments and adds tests Created 6 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
tzik 2014/12/03 08:35:49 nit: newer code doesn't need "(c)" here.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_DATA_MIGRATOR_H_
6 #define CHROME_BROWSER_EXTENSIONS_APP_DATA_MIGRATOR_H_
7
8 #include "base/callback_forward.h"
9 #include "base/macros.h"
10
11 class Profile;
12
13 namespace extensions {
14 class Extension;
15 class ExtensionRegistry;
16
17 // This class migrates legacy packaged app data in the general storage
18 // partition to an isolated storage partition. This happens when a legacy
19 // packaged app is upgraded to a platform app. See http://crbug.com/302577
20 class AppDataMigrator {
21 public:
22 AppDataMigrator(Profile* profile, ExtensionRegistry* registry);
23
24 bool NeedsMigration(const Extension* old, const Extension* extension);
25
26 void DoMigrationAndReply(const Extension* old,
27 const Extension* extension,
28 const base::Closure& reply);
29
30 private:
31 ExtensionRegistry* registry_;
32
33 Profile* profile_;
34
35 DISALLOW_COPY_AND_ASSIGN(AppDataMigrator);
36 };
37
38 } // namespace extensions
39 #endif // CHROME_BROWSER_EXTENSIONS_APP_DATA_MIGRATOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/app_data_migrator.cc » ('j') | chrome/browser/extensions/app_data_migrator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698