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

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

Issue 2755593002: Remove pointer from PermissionPromptAndroid to InfoBar (Closed)
Patch Set: rm nl 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 d80d117dda7aa1d283939fba87be925ea1e6edc3..da43fd3ce55e9725756bda626c618515a7dbea30 100644
--- a/chrome/browser/permissions/permission_prompt_android.h
+++ b/chrome/browser/permissions/permission_prompt_android.h
@@ -11,17 +11,12 @@
#include "chrome/browser/ui/permission_bubble/permission_prompt.h"
#include "components/content_settings/core/common/content_settings_types.h"
-class InfoBarService;
class PermissionRequest;
namespace content {
class WebContents;
}
-namespace infobars {
-class InfoBar;
-}
-
class PermissionPromptAndroid : public PermissionPrompt {
public:
explicit PermissionPromptAndroid(content::WebContents* web_contents);
@@ -54,9 +49,6 @@ 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