Commit 8da2a18e authored by thestig@chromium.org's avatar thestig@chromium.org

Cleanup: Do not pass a non-const ref in RequestDesktopNotificationPermission.

Review URL: https://codereview.chromium.org/296043014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272670 0039d316-1c4b-4281-b951-d872f2087c98
parent fb5ccdeb
...@@ -2029,7 +2029,7 @@ content::MediaObserver* ChromeContentBrowserClient::GetMediaObserver() { ...@@ -2029,7 +2029,7 @@ content::MediaObserver* ChromeContentBrowserClient::GetMediaObserver() {
void ChromeContentBrowserClient::RequestDesktopNotificationPermission( void ChromeContentBrowserClient::RequestDesktopNotificationPermission(
const GURL& source_origin, const GURL& source_origin,
content::RenderFrameHost* render_frame_host, content::RenderFrameHost* render_frame_host,
base::Closure& callback) { const base::Closure& callback) {
#if defined(ENABLE_NOTIFICATIONS) #if defined(ENABLE_NOTIFICATIONS)
// Skip showing the infobar if the request comes from an extension, and that // Skip showing the infobar if the request comes from an extension, and that
// extension has the 'notify' permission. (If the extension does not have the // extension has the 'notify' permission. (If the extension does not have the
......
...@@ -200,7 +200,7 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient { ...@@ -200,7 +200,7 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
virtual void RequestDesktopNotificationPermission( virtual void RequestDesktopNotificationPermission(
const GURL& source_origin, const GURL& source_origin,
content::RenderFrameHost* render_frame_host, content::RenderFrameHost* render_frame_host,
base::Closure& callback) OVERRIDE; const base::Closure& callback) OVERRIDE;
virtual blink::WebNotificationPresenter::Permission virtual blink::WebNotificationPresenter::Permission
CheckDesktopNotificationPermission( CheckDesktopNotificationPermission(
const GURL& source_origin, const GURL& source_origin,
......
...@@ -451,7 +451,7 @@ class CONTENT_EXPORT ContentBrowserClient { ...@@ -451,7 +451,7 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual void RequestDesktopNotificationPermission( virtual void RequestDesktopNotificationPermission(
const GURL& source_origin, const GURL& source_origin,
RenderFrameHost* render_frame_host, RenderFrameHost* render_frame_host,
base::Closure& callback) {} const base::Closure& callback) {}
// Checks if the given page has permission to show desktop notifications. // Checks if the given page has permission to show desktop notifications.
// This is called on the IO thread. // This is called on the IO thread.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment