Commit 79407372 authored by miguelg@chromium.org's avatar miguelg@chromium.org

Remove unused methods from GoogleLocationSettingsHelper

Depends on https://codereview.chromium.org/441883003/ and an additional
downstream patch

BUG=400694

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288111 0039d316-1c4b-4281-b951-d872f2087c98
parent 0ded2c41
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/android/google_location_settings_helper.h"
// Temporary stubs for a 3 way patch
std::string GoogleLocationSettingsHelper::GetAcceptButtonLabel(bool allow) {
return std::string();
}
bool GoogleLocationSettingsHelper::IsAllowLabel() {
return false;
}
void GoogleLocationSettingsHelper::ShowGoogleLocationSettings() {
}
bool GoogleLocationSettingsHelper::IsMasterLocationSettingEnabled() {
return false;
}
bool GoogleLocationSettingsHelper::IsGoogleAppsLocationSettingEnabled() {
return false;
}
bool GoogleLocationSettingsHelper::IsSystemLocationEnabled() {
return IsMasterLocationSettingEnabled() &&
IsGoogleAppsLocationSettingEnabled();
}
......@@ -17,21 +17,11 @@ class GoogleLocationSettingsHelper {
static GoogleLocationSettingsHelper* Create();
virtual bool IsSystemLocationEnabled();
virtual bool IsSystemLocationEnabled() = 0;
protected:
GoogleLocationSettingsHelper() {}
// TODO(miguelg) Remove these three methods once the downstream
// dependencies get updated.
virtual std::string GetAcceptButtonLabel(bool allow);
virtual bool IsAllowLabel();
virtual void ShowGoogleLocationSettings();
// Checks both Master and Google Apps location setting to see
// if we should allow geolocation.
virtual bool IsMasterLocationSettingEnabled();
virtual bool IsGoogleAppsLocationSettingEnabled();
private:
......
......@@ -32,3 +32,8 @@ bool MockGoogleLocationSettingsHelper::IsGoogleAppsLocationSettingEnabled() {
bool MockGoogleLocationSettingsHelper::IsMasterLocationSettingEnabled() {
return master_location_enabled;
}
bool MockGoogleLocationSettingsHelper::IsSystemLocationEnabled() {
return IsMasterLocationSettingEnabled() &&
IsGoogleAppsLocationSettingEnabled();
}
......@@ -12,9 +12,10 @@ class MockGoogleLocationSettingsHelper : public GoogleLocationSettingsHelper {
public:
static void SetLocationStatus(bool master, bool google_apps);
// GoogleLocationSettingsHelper implementation:
virtual bool IsMasterLocationSettingEnabled() OVERRIDE;
virtual bool IsGoogleAppsLocationSettingEnabled() OVERRIDE;
virtual bool IsSystemLocationEnabled() OVERRIDE;
bool IsMasterLocationSettingEnabled();
bool IsGoogleAppsLocationSettingEnabled();
protected:
MockGoogleLocationSettingsHelper();
......
......@@ -57,7 +57,6 @@
'browser/android/new_tab_page_prefs.h',
'browser/android/new_tab_page_url_handler.cc',
'browser/android/new_tab_page_url_handler.h',
'browser/android/google_location_settings_helper.cc',
'browser/android/google_location_settings_helper.h',
'browser/android/intent_helper.cc',
'browser/android/intent_helper.h',
......
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