summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc9
-rw-r--r--chrome/browser/gtk/gtk_theme_provider.cc7
-rw-r--r--chrome/browser/gtk/options/advanced_contents_gtk.cc7
3 files changed, 14 insertions, 9 deletions
diff --git a/chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc b/chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc
index 1391e64..3a54f09 100644
--- a/chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc
+++ b/chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc
@@ -1,11 +1,13 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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/gtk/create_application_shortcuts_dialog_gtk.h"
+#include <string>
+
#include "app/l10n_util.h"
-#include "base/linux_util.h"
+#include "base/env_var.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/gtk/gtk_util.h"
#include "chrome/browser/shell_integration.h"
@@ -124,8 +126,7 @@ void CreateApplicationShortcutsDialogGtk::CreateDesktopShortcut(
const ShellIntegration::ShortcutInfo& shortcut_info) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE));
- scoped_ptr<base::EnvironmentVariableGetter> env_getter(
- base::EnvironmentVariableGetter::Create());
+ scoped_ptr<base::EnvVarGetter> env_getter(base::EnvVarGetter::Create());
std::string shortcut_template;
if (ShellIntegration::GetDesktopShortcutTemplate(env_getter.get(),
diff --git a/chrome/browser/gtk/gtk_theme_provider.cc b/chrome/browser/gtk/gtk_theme_provider.cc
index 6494657..7fee05a6 100644
--- a/chrome/browser/gtk/gtk_theme_provider.cc
+++ b/chrome/browser/gtk/gtk_theme_provider.cc
@@ -6,7 +6,10 @@
#include <gtk/gtk.h>
+#include <set>
+
#include "app/resource_bundle.h"
+#include "base/env_var.h"
#include "base/linux_util.h"
#include "base/stl_util-inl.h"
#include "chrome/browser/metrics/user_metrics.h"
@@ -400,13 +403,11 @@ GdkPixbuf* GtkThemeProvider::GetDefaultFavicon(bool native) {
static GdkPixbuf* default_bookmark_icon_ = rb.GetPixbufNamed(
IDR_DEFAULT_FAVICON);
return default_bookmark_icon_;
-
}
// static
bool GtkThemeProvider::DefaultUsesSystemTheme() {
- scoped_ptr<base::EnvironmentVariableGetter> env_getter(
- base::EnvironmentVariableGetter::Create());
+ scoped_ptr<base::EnvVarGetter> env_getter(base::EnvVarGetter::Create());
switch (base::GetDesktopEnvironment(env_getter.get())) {
case base::DESKTOP_ENVIRONMENT_GNOME:
diff --git a/chrome/browser/gtk/options/advanced_contents_gtk.cc b/chrome/browser/gtk/options/advanced_contents_gtk.cc
index 356fa42..e3eaa79 100644
--- a/chrome/browser/gtk/options/advanced_contents_gtk.cc
+++ b/chrome/browser/gtk/options/advanced_contents_gtk.cc
@@ -7,10 +7,14 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <string>
+#include <vector>
+
#include "app/gtk_signal.h"
#include "app/gtk_util.h"
#include "app/l10n_util.h"
#include "base/basictypes.h"
+#include "base/env_var.h"
#include "base/file_util.h"
#include "base/linux_util.h"
#include "base/path_service.h"
@@ -392,8 +396,7 @@ void NetworkSection::OnChangeProxiesButtonClicked(GtkButton *button,
section->UserMetricsRecordAction(UserMetricsAction("Options_ChangeProxies"),
NULL);
- scoped_ptr<base::EnvironmentVariableGetter> env_getter(
- base::EnvironmentVariableGetter::Create());
+ scoped_ptr<base::EnvVarGetter> env_getter(base::EnvVarGetter::Create());
ProxyConfigCommand command;
bool found_command = false;