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

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 955383003: ContentBrowserClient::RequestPermission replies with PermissionStatus instead of bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android geolocation breakage Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 ContentBrowserClient::GetPlatformNotificationService() { 223 ContentBrowserClient::GetPlatformNotificationService() {
224 return nullptr; 224 return nullptr;
225 } 225 }
226 226
227 void ContentBrowserClient::RequestPermission( 227 void ContentBrowserClient::RequestPermission(
228 PermissionType permission, 228 PermissionType permission,
229 WebContents* web_contents, 229 WebContents* web_contents,
230 int bridge_id, 230 int bridge_id,
231 const GURL& requesting_frame, 231 const GURL& requesting_frame,
232 bool user_gesture, 232 bool user_gesture,
233 const base::Callback<void(bool)>& result_callback) { 233 const base::Callback<void(PermissionStatus)>& callback) {
234 result_callback.Run(true); 234 callback.Run(PERMISSION_STATUS_DENIED);
gunsch 2015/03/26 22:36:55 I'm a little late to the party, but I just noticed
mlamouri (slow - plz ping) 2015/03/30 09:32:41 If you look at ContentBrowserClient, this is how i
235 } 235 }
236 236
237 PermissionStatus ContentBrowserClient::GetPermissionStatus( 237 PermissionStatus ContentBrowserClient::GetPermissionStatus(
238 PermissionType permission, 238 PermissionType permission,
239 BrowserContext* browser_context, 239 BrowserContext* browser_context,
240 const GURL& requesting_origin, 240 const GURL& requesting_origin,
241 const GURL& embedding_origin) { 241 const GURL& embedding_origin) {
242 return PERMISSION_STATUS_DENIED; 242 return PERMISSION_STATUS_DENIED;
243 } 243 }
244 244
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 #if defined(VIDEO_HOLE) 362 #if defined(VIDEO_HOLE)
363 ExternalVideoSurfaceContainer* 363 ExternalVideoSurfaceContainer*
364 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 364 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
365 WebContents* web_contents) { 365 WebContents* web_contents) {
366 return nullptr; 366 return nullptr;
367 } 367 }
368 #endif 368 #endif
369 369
370 } // namespace content 370 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698