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

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

Issue 6914021: Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « chrome/browser/background_mode_manager_unittest.cc ('k') | chrome/browser/browser_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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) {
92 // Create a status tray notification balloon explaining to the user that 93 // Create a status tray notification balloon explaining to the user that
93 // a background app has been installed. 94 // a background app has been installed.
94 CreateStatusTrayIcon(); 95 CreateStatusTrayIcon(profile);
95 status_icon_->DisplayBalloon( 96 background_mode_data_[profile]->status_icon_->DisplayBalloon(
96 l10n_util::GetStringUTF16(IDS_BACKGROUND_APP_INSTALLED_BALLOON_TITLE), 97 l10n_util::GetStringUTF16(IDS_BACKGROUND_APP_INSTALLED_BALLOON_TITLE),
97 l10n_util::GetStringFUTF16( 98 l10n_util::GetStringFUTF16(
98 IDS_BACKGROUND_APP_INSTALLED_BALLOON_BODY, 99 IDS_BACKGROUND_APP_INSTALLED_BALLOON_BODY,
99 UTF8ToUTF16(extension->name()), 100 UTF8ToUTF16(extension->name()),
100 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); 101 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
101 } 102 }
102 103
103 string16 BackgroundModeManager::GetPreferencesMenuLabel() { 104 string16 BackgroundModeManager::GetPreferencesMenuLabel() {
104 return l10n_util::GetStringUTF16(IDS_OPTIONS); 105 return l10n_util::GetStringUTF16(IDS_OPTIONS);
105 } 106 }
OLDNEW
« no previous file with comments | « chrome/browser/background_mode_manager_unittest.cc ('k') | chrome/browser/browser_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698