Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: chrome/browser/background_mode_manager_linux.cc

Issue 6122006: Cleanup: Remove unneeded includes of pref_names.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" 18 #include "chrome/browser/prefs/pref_service.h"
19 #include "chrome/browser/shell_integration.h" 19 #include "chrome/browser/shell_integration.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/chrome_version_info.h" 21 #include "chrome/common/chrome_version_info.h"
22 #include "chrome/common/pref_names.h"
23 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
24 23
25 namespace { 24 namespace {
26 25
27 class DisableLaunchOnStartupTask : public Task { 26 class DisableLaunchOnStartupTask : public Task {
28 public: 27 public:
29 virtual void Run(); 28 virtual void Run();
30 }; 29 };
31 30
32 class EnableLaunchOnStartupTask : public Task { 31 class EnableLaunchOnStartupTask : public Task {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 file_util::Delete(GetAutostartFilename(environment.get()), false); 106 file_util::Delete(GetAutostartFilename(environment.get()), false);
108 } 107 }
109 } 108 }
110 109
111 string16 BackgroundModeManager::GetPreferencesMenuLabel() { 110 string16 BackgroundModeManager::GetPreferencesMenuLabel() {
112 string16 result = gtk_util::GetStockPreferencesMenuLabel(); 111 string16 result = gtk_util::GetStockPreferencesMenuLabel();
113 if (!result.empty()) 112 if (!result.empty())
114 return result; 113 return result;
115 return l10n_util::GetStringUTF16(IDS_PREFERENCES); 114 return l10n_util::GetStringUTF16(IDS_PREFERENCES);
116 } 115 }
OLDNEW
« no previous file with comments | « chrome/browser/background_application_list_model.cc ('k') | chrome/browser/background_mode_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698