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

Side by Side Diff: chrome/browser/background/background_mode_manager_gtk.cc

Issue 8392042: Split BrowserThread into public API and private implementation, step 1. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/nix/xdg_util.h" 12 #include "base/nix/xdg_util.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "chrome/browser/background/background_mode_manager.h" 14 #include "chrome/browser/background/background_mode_manager.h"
15 #include "chrome/browser/shell_integration.h" 15 #include "chrome/browser/shell_integration.h"
16 #include "chrome/browser/ui/gtk/gtk_util.h" 16 #include "chrome/browser/ui/gtk/gtk_util.h"
17 #include "chrome/common/auto_start_linux.h" 17 #include "chrome/common/auto_start_linux.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/chrome_version_info.h" 19 #include "chrome/common/chrome_version_info.h"
20 #include "content/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
22 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
23 23
24 namespace { 24 namespace {
25 25
26 class DisableLaunchOnStartupTask : public Task { 26 class DisableLaunchOnStartupTask : public Task {
27 public: 27 public:
28 virtual void Run(); 28 virtual void Run();
29 }; 29 };
30 30
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 string16 BackgroundModeManager::GetPreferencesMenuLabel() { 87 string16 BackgroundModeManager::GetPreferencesMenuLabel() {
88 #if !defined(USE_AURA) 88 #if !defined(USE_AURA)
89 string16 result = gtk_util::GetStockPreferencesMenuLabel(); 89 string16 result = gtk_util::GetStockPreferencesMenuLabel();
90 if (!result.empty()) 90 if (!result.empty())
91 return result; 91 return result;
92 #endif 92 #endif
93 return l10n_util::GetStringUTF16(IDS_PREFERENCES); 93 return l10n_util::GetStringUTF16(IDS_PREFERENCES);
94 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698