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

Unified Diff: chrome/browser/geolocation/geolocation_confirm_infobar_delegate.cc

Issue 11269002: Introduce GeolocationPermissionRequestID, a wrapper struct to contain the (render process ID, rende… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/geolocation/geolocation_confirm_infobar_delegate.cc
===================================================================
--- chrome/browser/geolocation/geolocation_confirm_infobar_delegate.cc (revision 163741)
+++ chrome/browser/geolocation/geolocation_confirm_infobar_delegate.cc (working copy)
@@ -16,21 +16,16 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
-// GeolocationConfirmInfoBarDelegate ------------------------------------------
GeolocationConfirmInfoBarDelegate::GeolocationConfirmInfoBarDelegate(
InfoBarTabHelper* infobar_helper,
GeolocationInfoBarQueueController* controller,
- int render_process_id,
- int render_view_id,
- int bridge_id,
+ const content::GeolocationPermissionRequestID& id,
const GURL& requesting_frame_url,
const std::string& display_languages)
: ConfirmInfoBarDelegate(infobar_helper),
controller_(controller),
- render_process_id_(render_process_id),
- render_view_id_(render_view_id),
- bridge_id_(bridge_id),
+ id_(id),
requesting_frame_url_(requesting_frame_url),
display_languages_(display_languages) {
const content::NavigationEntry* committed_entry =
@@ -61,12 +56,9 @@
void GeolocationConfirmInfoBarDelegate::SetPermission(
bool update_content_setting, bool allowed) {
- controller_->OnPermissionSet(
- render_process_id_, render_view_id_, bridge_id_,
- requesting_frame_url_,
- owner()->GetWebContents()->GetURL(),
- update_content_setting,
- allowed);
+ controller_->OnPermissionSet(id_, requesting_frame_url_,
+ owner()->GetWebContents()->GetURL(),
+ update_content_setting, allowed);
}
bool GeolocationConfirmInfoBarDelegate::Accept() {

Powered by Google App Engine
This is Rietveld 408576698