OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/install_tracker.h" | 5 #include "chrome/browser/extensions/install_tracker.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/extensions/extension_prefs.h" | |
10 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
11 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
| 11 #include "extensions/browser/extension_prefs.h" |
12 #include "extensions/browser/pref_names.h" | 12 #include "extensions/browser/pref_names.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 InstallTracker::InstallTracker(Profile* profile, | 16 InstallTracker::InstallTracker(Profile* profile, |
17 extensions::ExtensionPrefs* prefs) { | 17 extensions::ExtensionPrefs* prefs) { |
18 AppSorting* sorting = prefs->app_sorting(); | 18 AppSorting* sorting = prefs->app_sorting(); |
19 | 19 |
20 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_INSTALLED, | 20 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_INSTALLED, |
21 content::Source<Profile>(profile)); | 21 content::Source<Profile>(profile)); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 default: | 118 default: |
119 NOTREACHED(); | 119 NOTREACHED(); |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 void InstallTracker::OnAppsReordered() { | 123 void InstallTracker::OnAppsReordered() { |
124 FOR_EACH_OBSERVER(InstallObserver, observers_, OnAppsReordered()); | 124 FOR_EACH_OBSERVER(InstallObserver, observers_, OnAppsReordered()); |
125 } | 125 } |
126 | 126 |
127 } // namespace extensions | 127 } // namespace extensions |
OLD | NEW |