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

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.h

Issue 501273002: Update extension install prompt to reflect withheld permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor extension install dialog view constructor Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/extension_install_dialog_view.h
diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view.h b/chrome/browser/ui/views/extensions/extension_install_dialog_view.h
index 604e9ae1e6a874f6398f10cf122b2137550e71d7..3e2b73ebfbc3836016bf093cb1851f67b1441344 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.h
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_
#include "chrome/browser/extensions/extension_install_prompt.h"
+#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/animation/animation_delegate.h"
#include "ui/gfx/animation/slide_animation.h"
#include "ui/views/controls/button/button.h"
@@ -54,6 +55,14 @@ class ExtensionInstallDialogView : public views::DialogDelegateView,
scoped_refptr<ExtensionInstallPrompt::Prompt> prompt);
virtual ~ExtensionInstallDialogView();
+ void InitView();
Devlin 2014/09/02 21:07:51 Comments.
gpdavis 2014/09/04 19:40:04 Wasn't sure what to say about this, since there we
+
+ bool MaybeAddPermissions(views::GridLayout* layout,
Devlin 2014/09/02 21:07:51 Is there a reason these two functions should be pu
Devlin 2014/09/02 21:07:51 Comments
gpdavis 2014/09/04 19:40:04 No there is not. My mistake. Done.
gpdavis 2014/09/04 19:40:04 How about... "Adds permissions of |perm_type| to
+ ui::ResourceBundle& rb,
Devlin 2014/09/02 21:07:51 Just forward-declare resource bundle, rather than
gpdavis 2014/09/04 19:40:04 Done.
+ int column_set_id,
+ int left_column_width,
+ ExtensionInstallPrompt::PermissionsType perm_type);
+
// Returns the interior ScrollView of the dialog. This allows us to inspect
// the contents of the DialogView.
const views::ScrollView* scroll_view() const { return scroll_view_; }

Powered by Google App Engine
This is Rietveld 408576698