OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/common/extensions/permissions/app_permission_message_provider.h " | |
6 | |
7 #include "chrome/common/extensions/permissions/permission_set.h" | |
8 #include "extensions/common/permissions/permission_message.h" | |
9 | |
10 namespace extensions { | |
11 | |
12 AppPermissionMessageProvider::AppPermissionMessageProvider() { | |
13 } | |
14 | |
15 AppPermissionMessageProvider::~AppPermissionMessageProvider() { | |
16 } | |
17 | |
18 std::set<PermissionMessage> | |
19 AppPermissionMessageProvider::GetHostPermissionMessages( | |
Matt Perry
2013/10/16 20:07:04
It seems like these 2 special cases are the only r
Yoyo Zhou
2013/10/17 19:45:52
Ok. I thought this was going to be more useful tha
| |
20 const PermissionSet* permissions) const { | |
21 // Since platform apps always use isolated storage, they can't (silently) | |
22 // access user data on other domains, so there's no need to prompt. | |
23 // Note: this must remain consistent with HasLessHostPrivilegesThan. | |
24 // See crbug.com/255229. | |
25 std::set<PermissionMessage> messages; | |
26 return messages; | |
27 } | |
28 | |
29 bool AppPermissionMessageProvider::IsHostPrivilegeIncrease( | |
30 const PermissionSet* old_permissions, | |
31 const PermissionSet* new_permissions) const { | |
32 // Platform apps host permission changes do not count as privilege increases. | |
33 // Note: this must remain consistent with GetHostPermissionMessages. | |
34 return false; | |
35 } | |
36 | |
37 } // namespace extensions | |
OLD | NEW |