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

Side by Side Diff: chrome/common/extensions/permissions/permission_set.cc

Issue 12095023: Allow platform apps to add themselves to the Action Box. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use raw pointer + IconImage signature changed Created 7 years, 10 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
« no previous file with comments | « chrome/common/extensions/extension_manifest_constants.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/extensions/permissions/permission_set.h" 5 #include "chrome/common/extensions/permissions/permission_set.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 const char* kNonPermissionModuleNames[] = { 40 const char* kNonPermissionModuleNames[] = {
41 "browserAction", 41 "browserAction",
42 "commands", 42 "commands",
43 "devtools", 43 "devtools",
44 "events", 44 "events",
45 "extension", 45 "extension",
46 "i18n", 46 "i18n",
47 "omnibox", 47 "omnibox",
48 "pageAction", 48 "pageAction",
49 "pageActions", 49 "pageActions",
50 "pageLauncher",
50 "permissions", 51 "permissions",
51 "runtime", 52 "runtime",
52 "scriptBadge", 53 "scriptBadge",
53 "tabs", 54 "tabs",
54 "test", 55 "test",
55 "types", 56 "types",
56 "windows" 57 "windows"
57 }; 58 };
58 const size_t kNumNonPermissionModuleNames = 59 const size_t kNumNonPermissionModuleNames =
59 arraysize(kNonPermissionModuleNames); 60 arraysize(kNonPermissionModuleNames);
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 std::set<std::string> new_hosts_only; 612 std::set<std::string> new_hosts_only;
612 613
613 std::set_difference(new_hosts_set.begin(), new_hosts_set.end(), 614 std::set_difference(new_hosts_set.begin(), new_hosts_set.end(),
614 old_hosts_set.begin(), old_hosts_set.end(), 615 old_hosts_set.begin(), old_hosts_set.end(),
615 std::inserter(new_hosts_only, new_hosts_only.begin())); 616 std::inserter(new_hosts_only, new_hosts_only.begin()));
616 617
617 return !new_hosts_only.empty(); 618 return !new_hosts_only.empty();
618 } 619 }
619 620
620 } // namespace extensions 621 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_manifest_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698