OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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/browser/extensions/extension_permissions_prompt.h" |
| 6 |
| 7 #include "base/message_loop.h" |
| 8 #include "chrome/common/extensions/extension.h" |
| 9 #include "chrome/common/extensions/permissions/permission_set.h" |
| 10 |
| 11 ExtensionPermissionsPrompt::ExtensionPermissionsPrompt( |
| 12 content::WebContents* contents) : ExtensionInstallPrompt(contents) { |
| 13 } |
| 14 |
| 15 void ExtensionPermissionsPrompt::PermissionsDialog( |
| 16 Delegate* delegate, |
| 17 const extensions::Extension* extension) { |
| 18 |
| 19 DCHECK(ui_loop_ == MessageLoop::current()); |
| 20 extension_ = extension; |
| 21 permissions_ = extension->GetActivePermissions(); |
| 22 delegate_ = delegate; |
| 23 prompt_.set_type(POST_INSTALL_PERMISSIONS_PROMPT); |
| 24 |
| 25 // TODO(grv): Load extension icon. |
| 26 SetIcon(NULL); |
| 27 FetchOAuthIssueAdviceIfNeeded(); |
| 28 } |
| 29 |
OLD | NEW |