OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/background_application_list_model.h" | 5 #include "chrome/browser/background/background_application_list_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/app/chrome_command_ids.h" | 12 #include "chrome/app/chrome_command_ids.h" |
13 #include "chrome/browser/background/background_mode_manager.h" | 13 #include "chrome/browser/background/background_mode_manager.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/extensions/extension_prefs.h" | 15 #include "chrome/browser/extensions/extension_prefs.h" |
16 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
17 #include "chrome/browser/extensions/image_loading_tracker.h" | 17 #include "chrome/browser/extensions/image_loading_tracker.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
20 #include "chrome/common/extensions/extension.h" | 20 #include "chrome/common/extensions/extension.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 (*old_cursor)->name() == (*new_cursor)->name() && | 316 (*old_cursor)->name() == (*new_cursor)->name() && |
317 (*old_cursor)->id() == (*new_cursor)->id()) { | 317 (*old_cursor)->id() == (*new_cursor)->id()) { |
318 ++old_cursor; | 318 ++old_cursor; |
319 ++new_cursor; | 319 ++new_cursor; |
320 } | 320 } |
321 if (old_cursor != extensions_.end() || new_cursor != extensions.end()) { | 321 if (old_cursor != extensions_.end() || new_cursor != extensions.end()) { |
322 extensions_ = extensions; | 322 extensions_ = extensions; |
323 FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged(profile_)); | 323 FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged(profile_)); |
324 } | 324 } |
325 } | 325 } |
OLD | NEW |