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

Unified Diff: chrome/browser/profiles/profile_shortcut_manager_win.cc

Issue 9972012: Resolve the conflict that auto-launch has with the background mode feature (part 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_shortcut_manager_win.cc
===================================================================
--- chrome/browser/profiles/profile_shortcut_manager_win.cc (revision 132169)
+++ chrome/browser/profiles/profile_shortcut_manager_win.cc (working copy)
@@ -208,10 +208,15 @@
void DeleteAutoLaunchValueForProfile(
const FilePath& profile_path) {
- if (auto_launch_util::WillLaunchAtLogin(FilePath(),
- profile_path.BaseName().value())) {
- auto_launch_util::SetWillLaunchAtLogin(
- false, FilePath(), profile_path.BaseName().value());
+ if (auto_launch_util::WillLaunchAtLoginWithSwitch(
+ FilePath(),
+ profile_path.BaseName().value(),
+ switches::kAutoLaunchAtStartup)) {
+ auto_launch_util::SetWillLaunchAtLogin(
grt (UTC plus 2) 2012/04/16 15:30:14 this doesn't seem to scale very well: all callsite
Finnur 2012/04/16 15:43:48 Can you elaborate a bit? Are you talking about an
grt (UTC plus 2) 2012/04/16 15:48:47 My first thought was just different functions: one
+ FilePath(),
+ profile_path.BaseName().value(),
+ auto_launch_util::FLAG_DISABLE, // Auto launch.
+ auto_launch_util::FLAG_PRESERVE); // Background mode.
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698