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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/mac/mac_util.h" | 6 #include "base/mac/mac_util.h" |
7 #include "chrome/browser/background_mode_manager.h" | 7 #include "chrome/browser/background_mode_manager.h" |
8 #include "chrome/browser/browser_thread.h" | |
9 #include "chrome/common/app_mode_common_mac.h" | 8 #include "chrome/common/app_mode_common_mac.h" |
10 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "content/browser/browser_thread.h" |
11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 class DisableLaunchOnStartupTask : public Task { | 16 class DisableLaunchOnStartupTask : public Task { |
17 public: | 17 public: |
18 virtual void Run(); | 18 virtual void Run(); |
19 }; | 19 }; |
20 | 20 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 new EnableLaunchOnStartupTask()); | 69 new EnableLaunchOnStartupTask()); |
70 } else { | 70 } else { |
71 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 71 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
72 new DisableLaunchOnStartupTask()); | 72 new DisableLaunchOnStartupTask()); |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 string16 BackgroundModeManager::GetPreferencesMenuLabel() { | 76 string16 BackgroundModeManager::GetPreferencesMenuLabel() { |
77 return l10n_util::GetStringUTF16(IDS_OPTIONS); | 77 return l10n_util::GetStringUTF16(IDS_OPTIONS); |
78 } | 78 } |
OLD | NEW |