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

Side by Side Diff: chrome/browser/geolocation/geolocation_permission_context_extensions.h

Issue 1997453003: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move changes in and out to fix compile Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_H_
6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_H_ 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/content_settings/core/common/content_settings.h" 10 #include "components/content_settings/core/common/content_settings.h"
(...skipping 21 matching lines...) Expand all
32 const GURL& requesting_frame, 32 const GURL& requesting_frame,
33 const base::Callback<void(ContentSetting)>& callback, 33 const base::Callback<void(ContentSetting)>& callback,
34 bool* permission_set, 34 bool* permission_set,
35 bool* new_permission); 35 bool* new_permission);
36 36
37 // Returns true if the cancellation request was handled. 37 // Returns true if the cancellation request was handled.
38 bool CancelPermissionRequest(content::WebContents* web_contents, 38 bool CancelPermissionRequest(content::WebContents* web_contents,
39 int bridge_id); 39 int bridge_id);
40 40
41 private: 41 private:
42 #if defined(ENABLE_EXTENSIONS)
42 Profile* profile_; 43 Profile* profile_;
44 #endif
43 45
44 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextExtensions); 46 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextExtensions);
45 }; 47 };
46 48
47 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_ H_ 49 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698