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

Side by Side Diff: chrome/browser/extensions/install_tracker.cc

Issue 46853004: Move ExtensionPrefs and friends to extensions/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and update app_shell Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | chrome/browser/extensions/install_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698