Index: base/linux_util.h |
diff --git a/base/linux_util.h b/base/linux_util.h |
index 5a4648145d77e4d80ec7e34883fa76a4a2d4fea3..693377c8e524648a90a0573be9c4887182a0f3e6 100644 |
--- a/base/linux_util.h |
+++ b/base/linux_util.h |
@@ -32,11 +32,17 @@ class EnvironmentVariableGetter { |
static EnvironmentVariableGetter* Create(); |
}; |
-// Return true if we appear to be running under Gnome and should attempt to use |
-// some prefrences from the desktop environment (eg proxy settings), |
-// If someone adds support for other environments, this function could be |
-// replaced with one that returns an enum so we an specify Gnome, KDE, etc. |
-bool UseGnomeForSettings(EnvironmentVariableGetter* env_var_getter); |
+enum DesktopEnvironment { |
+ DESKTOP_ENVIRONMENT_OTHER, |
+ DESKTOP_ENVIRONMENT_GNOME, |
+ DESKTOP_ENVIRONMENT_KDE, |
+}; |
+ |
+// Return an entry from the DesktopEnvironment enum with a best guess |
+// of which desktop environment we're using. We use this to know when |
+// to attempt to use preferences from the desktop environment -- |
+// proxy settings, password manager, etc. |
+DesktopEnvironment GetDesktopEnvironment(EnvironmentVariableGetter* env); |
} // namespace base |