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 "chrome/browser/extensions/permissions_updater.h" | 5 #include "chrome/browser/extensions/permissions_updater.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/json/json_file_value_serializer.h" | 10 #include "base/json/json_file_value_serializer.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/stringprintf.h" | |
15 #include "base/values.h" | 14 #include "base/values.h" |
16 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
17 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
18 #include "chrome/browser/extensions/extension_service_test_base.h" | 17 #include "chrome/browser/extensions/extension_service_test_base.h" |
19 #include "chrome/browser/extensions/extension_util.h" | 18 #include "chrome/browser/extensions/extension_util.h" |
20 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" |
21 #include "chrome/common/extensions/extension_test_util.h" | 20 #include "chrome/common/extensions/extension_test_util.h" |
22 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
23 #include "components/crx_file/id_util.h" | 22 #include "components/crx_file/id_util.h" |
24 #include "content/public/browser/notification_observer.h" | 23 #include "content/public/browser/notification_observer.h" |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 ->active_permissions() | 356 ->active_permissions() |
358 .HasExplicitAccessToOrigin(kOrigin)); | 357 .HasExplicitAccessToOrigin(kOrigin)); |
359 EXPECT_TRUE(extension->permissions_data() | 358 EXPECT_TRUE(extension->permissions_data() |
360 ->withheld_permissions() | 359 ->withheld_permissions() |
361 .HasExplicitAccessToOrigin(kOrigin)); | 360 .HasExplicitAccessToOrigin(kOrigin)); |
362 EXPECT_TRUE(updater.GetRevokablePermissions(extension.get())->IsEmpty()); | 361 EXPECT_TRUE(updater.GetRevokablePermissions(extension.get())->IsEmpty()); |
363 } | 362 } |
364 } | 363 } |
365 | 364 |
366 } // namespace extensions | 365 } // namespace extensions |
OLD | NEW |