| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <unistd.h> | 5 #include <unistd.h> |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/nix/xdg_util.h" | 13 #include "base/nix/xdg_util.h" |
| 14 #include "base/task.h" | 14 #include "base/task.h" |
| 15 #include "chrome/browser/background_mode_manager.h" | 15 #include "chrome/browser/background_mode_manager.h" |
| 16 #include "chrome/browser/browser_thread.h" | 16 #include "chrome/browser/browser_thread.h" |
| 17 #include "chrome/browser/gtk/gtk_util.h" | 17 #include "chrome/browser/gtk/gtk_util.h" |
| 18 #include "chrome/browser/prefs/pref_service.h" | |
| 19 #include "chrome/browser/shell_integration.h" | 18 #include "chrome/browser/shell_integration.h" |
| 20 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 21 #include "chrome/common/chrome_version_info.h" | 20 #include "chrome/common/chrome_version_info.h" |
| 22 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
| 23 | 22 |
| 24 namespace { | 23 namespace { |
| 25 | 24 |
| 26 class DisableLaunchOnStartupTask : public Task { | 25 class DisableLaunchOnStartupTask : public Task { |
| 27 public: | 26 public: |
| 28 virtual void Run(); | 27 virtual void Run(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 file_util::Delete(GetAutostartFilename(environment.get()), false); | 105 file_util::Delete(GetAutostartFilename(environment.get()), false); |
| 107 } | 106 } |
| 108 } | 107 } |
| 109 | 108 |
| 110 string16 BackgroundModeManager::GetPreferencesMenuLabel() { | 109 string16 BackgroundModeManager::GetPreferencesMenuLabel() { |
| 111 string16 result = gtk_util::GetStockPreferencesMenuLabel(); | 110 string16 result = gtk_util::GetStockPreferencesMenuLabel(); |
| 112 if (!result.empty()) | 111 if (!result.empty()) |
| 113 return result; | 112 return result; |
| 114 return l10n_util::GetStringUTF16(IDS_PREFERENCES); | 113 return l10n_util::GetStringUTF16(IDS_PREFERENCES); |
| 115 } | 114 } |
| OLD | NEW |