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/chrome_app_sorting.h" | 5 #include "chrome/browser/extensions/chrome_app_sorting.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
11 #include "chrome/browser/extensions/extension_scoped_prefs.h" | |
12 #include "chrome/browser/extensions/extension_sync_service.h" | 11 #include "chrome/browser/extensions/extension_sync_service.h" |
13 #include "chrome/common/extensions/extension_constants.h" | 12 #include "chrome/common/extensions/extension_constants.h" |
14 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
| 14 #include "extensions/browser/extension_scoped_prefs.h" |
15 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
16 | 16 |
17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
18 #include "chrome/browser/chromeos/extensions/default_app_order.h" | 18 #include "chrome/browser/chromeos/extensions/default_app_order.h" |
19 #endif | 19 #endif |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 for (AppLaunchOrdinalMap::const_iterator it = m.begin(); it != m.end(); | 612 for (AppLaunchOrdinalMap::const_iterator it = m.begin(); it != m.end(); |
613 ++it) { | 613 ++it) { |
614 const std::string& id = it->second; | 614 const std::string& id = it->second; |
615 if (ntp_hidden_extensions_.count(id) == 0) | 615 if (ntp_hidden_extensions_.count(id) == 0) |
616 result++; | 616 result++; |
617 } | 617 } |
618 return result; | 618 return result; |
619 } | 619 } |
620 | 620 |
621 } // namespace extensions | 621 } // namespace extensions |
OLD | NEW |