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

Side by Side Diff: chrome/browser/background_application_list_model.cc

Issue 6122006: Cleanup: Remove unneeded includes of pref_names.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/background_application_list_model.h" 5 #include "chrome/browser/background_application_list_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "app/l10n_util_collator.h" 10 #include "app/l10n_util_collator.h"
11 #include "base/stl_util-inl.h" 11 #include "base/stl_util-inl.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/app/chrome_command_ids.h" 13 #include "chrome/app/chrome_command_ids.h"
14 #include "chrome/browser/background_mode_manager.h" 14 #include "chrome/browser/background_mode_manager.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/extensions/extension_prefs.h" 16 #include "chrome/browser/extensions/extension_prefs.h"
17 #include "chrome/browser/extensions/extension_service.h" 17 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/extensions/image_loading_tracker.h" 18 #include "chrome/browser/extensions/image_loading_tracker.h"
19 #include "chrome/browser/prefs/pref_service.h" 19 #include "chrome/browser/prefs/pref_service.h"
20 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/common/extensions/extension.h" 21 #include "chrome/common/extensions/extension.h"
22 #include "chrome/common/extensions/extension_resource.h" 22 #include "chrome/common/extensions/extension_resource.h"
23 #include "chrome/common/notification_details.h" 23 #include "chrome/common/notification_details.h"
24 #include "chrome/common/notification_source.h" 24 #include "chrome/common/notification_source.h"
25 #include "chrome/common/pref_names.h"
26 25
27 class ExtensionNameComparator { 26 class ExtensionNameComparator {
28 public: 27 public:
29 explicit ExtensionNameComparator(icu::Collator* collator); 28 explicit ExtensionNameComparator(icu::Collator* collator);
30 bool operator()(const Extension* x, const Extension* y); 29 bool operator()(const Extension* x, const Extension* y);
31 30
32 private: 31 private:
33 icu::Collator* collator_; 32 icu::Collator* collator_;
34 }; 33 };
35 34
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 (*old_cursor)->name() == (*new_cursor)->name() && 307 (*old_cursor)->name() == (*new_cursor)->name() &&
309 (*old_cursor)->id() == (*new_cursor)->id()) { 308 (*old_cursor)->id() == (*new_cursor)->id()) {
310 ++old_cursor; 309 ++old_cursor;
311 ++new_cursor; 310 ++new_cursor;
312 } 311 }
313 if (old_cursor != extensions_.end() || new_cursor != extensions.end()) { 312 if (old_cursor != extensions_.end() || new_cursor != extensions.end()) {
314 extensions_ = extensions; 313 extensions_ = extensions;
315 FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged()); 314 FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged());
316 } 315 }
317 } 316 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_unittest.cc ('k') | chrome/browser/background_mode_manager_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698