| OLD | NEW |
| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/background/background_mode_manager.h" | 9 #include "chrome/browser/background/background_mode_manager.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "chrome/grit/generated_resources.h" |
| 13 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 14 #include "grit/generated_resources.h" | |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 | 16 |
| 17 using content::BrowserThread; | 17 using content::BrowserThread; |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 void SetUserRemovedLoginItemPrefOnUIThread() { | 20 void SetUserRemovedLoginItemPrefOnUIThread() { |
| 21 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 21 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
| 22 PrefService* service = g_browser_process->local_state(); | 22 PrefService* service = g_browser_process->local_state(); |
| 23 service->SetBoolean(prefs::kUserRemovedLoginItem, true); | 23 service->SetBoolean(prefs::kUserRemovedLoginItem, true); |
| 24 } | 24 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 void BackgroundModeManager::DisplayAppInstalledNotification( | 152 void BackgroundModeManager::DisplayAppInstalledNotification( |
| 153 const extensions::Extension* extension) { | 153 const extensions::Extension* extension) { |
| 154 // TODO(atwilson): Display a platform-appropriate notification here. | 154 // TODO(atwilson): Display a platform-appropriate notification here. |
| 155 // http://crbug.com/74970 | 155 // http://crbug.com/74970 |
| 156 } | 156 } |
| 157 | 157 |
| 158 base::string16 BackgroundModeManager::GetPreferencesMenuLabel() { | 158 base::string16 BackgroundModeManager::GetPreferencesMenuLabel() { |
| 159 return l10n_util::GetStringUTF16(IDS_OPTIONS); | 159 return l10n_util::GetStringUTF16(IDS_OPTIONS); |
| 160 } | 160 } |
| OLD | NEW |