| 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/base_paths.h" | 5 #include "base/base_paths.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 if (should_launch) { | 81 if (should_launch) { |
| 82 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 82 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
| 83 new EnableLaunchOnStartupTask()); | 83 new EnableLaunchOnStartupTask()); |
| 84 } else { | 84 } else { |
| 85 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 85 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
| 86 new DisableLaunchOnStartupTask()); | 86 new DisableLaunchOnStartupTask()); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 void BackgroundModeManager::DisplayAppInstalledNotification( | 90 void BackgroundModeManager::DisplayAppInstalledNotification( |
| 91 const Extension* extension, | 91 const Extension* extension) { |
| 92 Profile* profile) { | |
| 93 // Create a status tray notification balloon explaining to the user that | 92 // Create a status tray notification balloon explaining to the user that |
| 94 // a background app has been installed. | 93 // a background app has been installed. |
| 95 CreateStatusTrayIcon(profile); | 94 CreateStatusTrayIcon(); |
| 96 background_mode_data_[profile]->status_icon_->DisplayBalloon( | 95 status_icon_->DisplayBalloon( |
| 97 l10n_util::GetStringUTF16(IDS_BACKGROUND_APP_INSTALLED_BALLOON_TITLE), | 96 l10n_util::GetStringUTF16(IDS_BACKGROUND_APP_INSTALLED_BALLOON_TITLE), |
| 98 l10n_util::GetStringFUTF16( | 97 l10n_util::GetStringFUTF16( |
| 99 IDS_BACKGROUND_APP_INSTALLED_BALLOON_BODY, | 98 IDS_BACKGROUND_APP_INSTALLED_BALLOON_BODY, |
| 100 UTF8ToUTF16(extension->name()), | 99 UTF8ToUTF16(extension->name()), |
| 101 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 100 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
| 102 } | 101 } |
| 103 | 102 |
| 104 string16 BackgroundModeManager::GetPreferencesMenuLabel() { | 103 string16 BackgroundModeManager::GetPreferencesMenuLabel() { |
| 105 return l10n_util::GetStringUTF16(IDS_OPTIONS); | 104 return l10n_util::GetStringUTF16(IDS_OPTIONS); |
| 106 } | 105 } |
| OLD | NEW |