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

Side by Side Diff: chrome/browser/background_mode_manager_mac.mm

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
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/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_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return; 79 return;
80 } 80 }
81 // Call to the File thread to remove the login item since it requires 81 // Call to the File thread to remove the login item since it requires
82 // accessing the disk. 82 // accessing the disk.
83 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 83 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
84 new DisableLaunchOnStartupTask()); 84 new DisableLaunchOnStartupTask());
85 } 85 }
86 } 86 }
87 87
88 void BackgroundModeManager::DisplayAppInstalledNotification( 88 void BackgroundModeManager::DisplayAppInstalledNotification(
89 const Extension* extension) { 89 const Extension* extension,
90 Profile* profile) {
90 // TODO(atwilson): Display a platform-appropriate notification here. 91 // TODO(atwilson): Display a platform-appropriate notification here.
91 // http://crbug.com/74970 92 // http://crbug.com/74970
92 } 93 }
93 94
94 string16 BackgroundModeManager::GetPreferencesMenuLabel() { 95 string16 BackgroundModeManager::GetPreferencesMenuLabel() {
95 return l10n_util::GetStringUTF16(IDS_OPTIONS); 96 return l10n_util::GetStringUTF16(IDS_OPTIONS);
96 } 97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698