OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" | 5 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/prefs/scoped_user_pref_update.h" | |
14 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.h" | 15 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.h" |
17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
18 #include "components/crx_file/id_util.h" | 17 #include "components/crx_file/id_util.h" |
19 #include "components/pref_registry/pref_registry_syncable.h" | 18 #include "components/pref_registry/pref_registry_syncable.h" |
| 19 #include "components/prefs/scoped_user_pref_update.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const char kName[] = "name"; | 24 const char kName[] = "name"; |
25 const char kPackageName[] = "package_name"; | 25 const char kPackageName[] = "package_name"; |
26 const char kActivity[] = "activity"; | 26 const char kActivity[] = "activity"; |
27 | 27 |
28 // Provider of write access to a dictionary storing ARC app prefs. | 28 // Provider of write access to a dictionary storing ARC app prefs. |
29 class ScopedArcAppListPrefUpdate : public DictionaryPrefUpdate { | 29 class ScopedArcAppListPrefUpdate : public DictionaryPrefUpdate { |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 } | 446 } |
447 | 447 |
448 ArcAppListPrefs::AppInfo::AppInfo(const std::string& name, | 448 ArcAppListPrefs::AppInfo::AppInfo(const std::string& name, |
449 const std::string& package_name, | 449 const std::string& package_name, |
450 const std::string& activity, | 450 const std::string& activity, |
451 bool ready) | 451 bool ready) |
452 : name(name), | 452 : name(name), |
453 package_name(package_name), | 453 package_name(package_name), |
454 activity(activity), | 454 activity(activity), |
455 ready(ready) {} | 455 ready(ready) {} |
OLD | NEW |