Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: chrome/browser/extensions/extension_permissions_prompt.cc

Issue 12943010: Add native permissions dialog for apps_devtools app. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698