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

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

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/geolocation/geolocation_permission_context_extensions.cc
diff --git a/chrome/browser/geolocation/geolocation_permission_context_extensions.cc b/chrome/browser/geolocation/geolocation_permission_context_extensions.cc
index 12710968680035d4a3980d12a1f86388a48f58cc..58944f060001564470d1fa7f9352113cfbf626ae 100644
--- a/chrome/browser/geolocation/geolocation_permission_context_extensions.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context_extensions.cc
@@ -22,19 +22,22 @@ using extensions::ExtensionRegistry;
namespace {
-#if ENABLE_EXTENSIONS
+#if defined(ENABLE_EXTENSIONS)
void CallbackContentSettingWrapper(
const base::Callback<void(ContentSetting)>& callback,
bool allowed) {
callback.Run(allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK);
}
-#endif // ENABLE_EXTENSIONS
+#endif // defined(ENABLE_EXTENSIONS)
} // anonymous namespace
-GeolocationPermissionContextExtensions::
-GeolocationPermissionContextExtensions(Profile* profile)
- : profile_(profile) {
+GeolocationPermissionContextExtensions::GeolocationPermissionContextExtensions(
+ Profile* profile)
+#if defined(ENABLE_EXTENSIONS)
+ : profile_(profile)
+#endif
+{
}
GeolocationPermissionContextExtensions::

Powered by Google App Engine
This is Rietveld 408576698