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

Unified Diff: chrome/browser/permissions/permission_prompt_android.h

Issue 2755593002: Remove pointer from PermissionPromptAndroid to InfoBar (Closed)
Patch Set: rebase over 2757483002 Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/permissions/permission_prompt_android.h
diff --git a/chrome/browser/permissions/permission_prompt_android.h b/chrome/browser/permissions/permission_prompt_android.h
index 28cf978509cfb23dc60c8c241bbb17e6ce55b9fb..93bec9e2622fb5a0fe7c681c09d00f7e6574cdcd 100644
--- a/chrome/browser/permissions/permission_prompt_android.h
+++ b/chrome/browser/permissions/permission_prompt_android.h
@@ -7,16 +7,10 @@
#include "chrome/browser/ui/website_settings/permission_prompt.h"
-class InfoBarService;
-
namespace content {
class WebContents;
}
-namespace infobars {
-class InfoBar;
-}
-
class PermissionPromptAndroid : public PermissionPrompt {
public:
explicit PermissionPromptAndroid(content::WebContents* web_contents);
@@ -46,9 +40,7 @@ class PermissionPromptAndroid : public PermissionPrompt {
content::WebContents* web_contents_;
// |delegate_| is the PermissionRequestManager, which owns this object.
Delegate* delegate_;
- // |infobar_| is owned by the InfoBarService; we keep a pointer here so we can
- // ask the service to remove the infobar after it is added.
- infobars::InfoBar* infobar_;
+
// The current request being displayed (if any).
std::vector<PermissionRequest*> requests_;

Powered by Google App Engine
This is Rietveld 408576698