OLD | NEW |
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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/json/json_file_value_serializer.h" | 6 #include "base/json/json_file_value_serializer.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/common/chrome_paths.h" | 10 #include "chrome/common/chrome_paths.h" |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 // Ensure that all permissions that needs to show install UI actually have | 571 // Ensure that all permissions that needs to show install UI actually have |
572 // strings associated with them. | 572 // strings associated with them. |
573 APIPermissionSet skip; | 573 APIPermissionSet skip; |
574 | 574 |
575 // These are considered "nuisance" or "trivial" permissions that don't need | 575 // These are considered "nuisance" or "trivial" permissions that don't need |
576 // a prompt. | 576 // a prompt. |
577 skip.insert(APIPermission::kActiveTab); | 577 skip.insert(APIPermission::kActiveTab); |
578 skip.insert(APIPermission::kAlarms); | 578 skip.insert(APIPermission::kAlarms); |
579 skip.insert(APIPermission::kAppNotifications); | 579 skip.insert(APIPermission::kAppNotifications); |
580 skip.insert(APIPermission::kAppWindow); | 580 skip.insert(APIPermission::kAppWindow); |
| 581 skip.insert(APIPermission::kBrowserTag); |
581 skip.insert(APIPermission::kBrowsingData); | 582 skip.insert(APIPermission::kBrowsingData); |
582 skip.insert(APIPermission::kContextMenus); | 583 skip.insert(APIPermission::kContextMenus); |
583 skip.insert(APIPermission::kDeclarative); | 584 skip.insert(APIPermission::kDeclarative); |
584 skip.insert(APIPermission::kIdle); | 585 skip.insert(APIPermission::kIdle); |
585 skip.insert(APIPermission::kNotification); | 586 skip.insert(APIPermission::kNotification); |
586 skip.insert(APIPermission::kUnlimitedStorage); | 587 skip.insert(APIPermission::kUnlimitedStorage); |
587 skip.insert(APIPermission::kStorage); | 588 skip.insert(APIPermission::kStorage); |
588 skip.insert(APIPermission::kTts); | 589 skip.insert(APIPermission::kTts); |
589 | 590 |
590 // TODO(erikkay) add a string for this permission. | 591 // TODO(erikkay) add a string for this permission. |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 perm_set = new PermissionSet( | 1152 perm_set = new PermissionSet( |
1152 empty_apis, non_empty_extent, empty_extent); | 1153 empty_apis, non_empty_extent, empty_extent); |
1153 EXPECT_FALSE(perm_set->IsEmpty()); | 1154 EXPECT_FALSE(perm_set->IsEmpty()); |
1154 | 1155 |
1155 perm_set = new PermissionSet( | 1156 perm_set = new PermissionSet( |
1156 empty_apis, empty_extent, non_empty_extent); | 1157 empty_apis, empty_extent, non_empty_extent); |
1157 EXPECT_FALSE(perm_set->IsEmpty()); | 1158 EXPECT_FALSE(perm_set->IsEmpty()); |
1158 } | 1159 } |
1159 | 1160 |
1160 } // namespace extensions | 1161 } // namespace extensions |
OLD | NEW |