| 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/api/permissions/permissions_api.h" | 5 #include "chrome/browser/extensions/api/permissions/permissions_api.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/extensions/api/permissions/permissions_api_helpers.h" | 9 #include "chrome/browser/extensions/api/permissions/permissions_api_helpers.h" |
| 10 #include "chrome/browser/extensions/permissions_updater.h" | 10 #include "chrome/browser/extensions/permissions_updater.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/common/extensions/api/permissions.h" | 12 #include "chrome/common/extensions/api/permissions.h" |
| 13 #include "extensions/browser/extension_prefs.h" | 13 #include "extensions/browser/extension_prefs.h" |
| 14 #include "extensions/common/error_utils.h" | 14 #include "extensions/common/error_utils.h" |
| 15 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
| 16 #include "extensions/common/permissions/permission_message_provider.h" | 16 #include "extensions/common/permissions/permission_message_provider.h" |
| 17 #include "extensions/common/permissions/permissions_data.h" | 17 #include "extensions/common/permissions/permissions_data.h" |
| 18 #include "extensions/common/permissions/permissions_info.h" | 18 #include "extensions/common/permissions/permissions_info.h" |
| 19 #include "extensions/common/url_pattern_set.h" | |
| 20 #include "url/gurl.h" | |
| 21 | 19 |
| 22 namespace extensions { | 20 namespace extensions { |
| 23 | 21 |
| 24 using api::permissions::Permissions; | 22 using api::permissions::Permissions; |
| 25 | 23 |
| 26 namespace Contains = api::permissions::Contains; | 24 namespace Contains = api::permissions::Contains; |
| 27 namespace GetAll = api::permissions::GetAll; | 25 namespace GetAll = api::permissions::GetAll; |
| 28 namespace Remove = api::permissions::Remove; | 26 namespace Remove = api::permissions::Remove; |
| 29 namespace Request = api::permissions::Request; | 27 namespace Request = api::permissions::Request; |
| 30 namespace helpers = permissions_api_helpers; | 28 namespace helpers = permissions_api_helpers; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 CHECK_EQ(DO_NOT_SKIP, auto_confirm_for_tests); | 214 CHECK_EQ(DO_NOT_SKIP, auto_confirm_for_tests); |
| 217 install_ui_.reset(new ExtensionInstallPrompt(GetAssociatedWebContents())); | 215 install_ui_.reset(new ExtensionInstallPrompt(GetAssociatedWebContents())); |
| 218 install_ui_->ConfirmPermissions( | 216 install_ui_->ConfirmPermissions( |
| 219 this, GetExtension(), requested_permissions_.get()); | 217 this, GetExtension(), requested_permissions_.get()); |
| 220 } | 218 } |
| 221 | 219 |
| 222 return true; | 220 return true; |
| 223 } | 221 } |
| 224 | 222 |
| 225 } // namespace extensions | 223 } // namespace extensions |
| OLD | NEW |