Chromium Code Reviews

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

Issue 6335001: Cleanup: Remove unneeded chrome/browser/prefs/pref_service.h usage.... (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.
Jump to:
View unified diff | | 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"
20 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/common/extensions/extension.h" 20 #include "chrome/common/extensions/extension.h"
22 #include "chrome/common/extensions/extension_resource.h" 21 #include "chrome/common/extensions/extension_resource.h"
23 #include "chrome/common/notification_details.h" 22 #include "chrome/common/notification_details.h"
24 #include "chrome/common/notification_source.h" 23 #include "chrome/common/notification_source.h"
25 24
26 class ExtensionNameComparator { 25 class ExtensionNameComparator {
27 public: 26 public:
28 explicit ExtensionNameComparator(icu::Collator* collator); 27 explicit ExtensionNameComparator(icu::Collator* collator);
29 bool operator()(const Extension* x, const Extension* y); 28 bool operator()(const Extension* x, const Extension* y);
(...skipping 277 matching lines...)
307 (*old_cursor)->name() == (*new_cursor)->name() && 306 (*old_cursor)->name() == (*new_cursor)->name() &&
308 (*old_cursor)->id() == (*new_cursor)->id()) { 307 (*old_cursor)->id() == (*new_cursor)->id()) {
309 ++old_cursor; 308 ++old_cursor;
310 ++new_cursor; 309 ++new_cursor;
311 } 310 }
312 if (old_cursor != extensions_.end() || new_cursor != extensions.end()) { 311 if (old_cursor != extensions_.end() || new_cursor != extensions.end()) {
313 extensions_ = extensions; 312 extensions_ = extensions;
314 FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged()); 313 FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged());
315 } 314 }
316 } 315 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_unittest.cc ('k') | chrome/browser/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine