| Index: chrome/browser/extensions/extension_permissions_prompt.cc
|
| diff --git a/chrome/browser/extensions/extension_permissions_prompt.cc b/chrome/browser/extensions/extension_permissions_prompt.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0bbb9d896b66ddfd229760ad1af544f7db8807c3
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/extension_permissions_prompt.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/extensions/extension_permissions_prompt.h"
|
| +
|
| +#include "base/message_loop.h"
|
| +#include "chrome/common/extensions/extension.h"
|
| +#include "chrome/common/extensions/permissions/permission_set.h"
|
| +
|
| +ExtensionPermissionsPrompt::ExtensionPermissionsPrompt(
|
| + content::WebContents* contents) : ExtensionInstallPrompt(contents) {
|
| +}
|
| +
|
| +void ExtensionPermissionsPrompt::PermissionsDialog(
|
| + Delegate* delegate,
|
| + const extensions::Extension* extension) {
|
| +
|
| + DCHECK(ui_loop_ == MessageLoop::current());
|
| + extension_ = extension;
|
| + permissions_ = extension->GetActivePermissions();
|
| + delegate_ = delegate;
|
| + prompt_.set_type(POST_INSTALL_PERMISSIONS_PROMPT);
|
| +
|
| + // TODO(grv): Load extension icon.
|
| + SetIcon(NULL);
|
| + FetchOAuthIssueAdviceIfNeeded();
|
| +}
|
| +
|
|
|