| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_LOCATION_LOCATION_SETTINGS_DIALOG_OUTCOME_H_ |
| 6 #define COMPONENTS_LOCATION_LOCATION_SETTINGS_DIALOG_OUTCOME_H_ |
| 7 |
| 8 // An enum to describe the outcome of a system location setting prompt. |
| 9 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.location |
| 10 enum LocationSettingsDialogOutcome { |
| 11 // The user accepted the prompt and the system location setting has been |
| 12 // flipped to granted. |
| 13 GRANTED = 1, |
| 14 |
| 15 // The user rejected the prompt and the system location setting has not been |
| 16 // flipped. |
| 17 DENIED = 2, |
| 18 |
| 19 // The prompt could not be triggered. |
| 20 // When CanPromptToEnableSystemLocationSetting() returns true, this should |
| 21 // only happen in exceptional circonstances, e.g. |
| 22 // - In the case of a race condition where the system location setting is |
| 23 // flipped elsewhere before the prompt could be triggered; |
| 24 // - In the case where some of the features required to trigger a system |
| 25 // location setting prompt became unavailable or unresponsive after the |
| 26 // response from CanPromptToEnableSystemLocationSetting() was received. |
| 27 NO_PROMPT = 3, |
| 28 }; |
| 29 |
| 30 #endif // COMPONENTS_LOCATION_LOCATION_SETTINGS_DIALOG_OUTCOME_H_ |
| OLD | NEW |