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

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

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extension_sorting.h" 5 #include "chrome/browser/extensions/extension_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" 11 #include "chrome/browser/extensions/extension_scoped_prefs.h"
12 #include "chrome/browser/extensions/extension_sync_service.h" 12 #include "chrome/browser/extensions/extension_sync_service.h"
13 #include "chrome/common/extensions/extension.h"
14 #include "chrome/common/extensions/extension_constants.h" 13 #include "chrome/common/extensions/extension_constants.h"
15 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.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 using extensions::ExtensionPrefs; 21 using extensions::ExtensionPrefs;
22 22
23 namespace { 23 namespace {
24 24
25 // The number of apps per page. This isn't a hard limit, but new apps installed 25 // The number of apps per page. This isn't a hard limit, but new apps installed
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 const AppLaunchOrdinalMap& m) const { 606 const AppLaunchOrdinalMap& m) const {
607 size_t result = 0; 607 size_t result = 0;
608 for (AppLaunchOrdinalMap::const_iterator it = m.begin(); it != m.end(); 608 for (AppLaunchOrdinalMap::const_iterator it = m.begin(); it != m.end();
609 ++it) { 609 ++it) {
610 const std::string& id = it->second; 610 const std::string& id = it->second;
611 if (ntp_hidden_extensions_.count(id) == 0) 611 if (ntp_hidden_extensions_.count(id) == 0)
612 result++; 612 result++;
613 } 613 }
614 return result; 614 return result;
615 } 615 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sorting.h ('k') | chrome/browser/extensions/extension_special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698