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

Issue 5368002: Move Mac LaunchOnStartup enable/disable to File thread (Closed)

Created:
10 years ago by The wrong rickcam account
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Follow pattern used for Linux and Windows to move the appropriate bits of Mac code to the file thread. BUG=59265 TEST=none This patch also splits platform-specific LaunchOnStartup code to platform-specific files, eliminating #if blocks from the primary source file. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68678

Patch Set 1 #

Patch Set 2 : First attempt at splitting background_mode_manager into platform-specific pieces #

Patch Set 3 : Got background_mode_manager compiling on Mac -- build still breaks #

Patch Set 4 : Handling cross-platform issues and using git cl upload and patch to sync #

Patch Set 5 : Removing excess header includes (Linux first) #

Patch Set 6 : Removing extra header includes: Mac #

Patch Set 7 : Eliminating excess header includes: Windows #

Total comments: 12

Patch Set 8 : Code review follow-up, changed refactoring points + mac thread specifics #

Patch Set 9 : Changing Mac LaunchOnStartupResetAllowed to accommodate FILE thread issues #

Total comments: 22

Patch Set 10 : Clean-up based on code-review comments #

Patch Set 11 : Final presubmit tweaks #

Patch Set 12 : Resolved merge conflict #

Patch Set 13 : Fixed previous attempt to resolve merge conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -222 lines) Patch
M chrome/browser/background_mode_manager.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/background_mode_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +1 line, -206 lines 0 comments Download
A chrome/browser/background_mode_manager_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/background_mode_manager_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +116 lines, -0 lines 0 comments Download
A chrome/browser/background_mode_manager_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/background_mode_manager_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Andrew T Wilson (Slow)
http://codereview.chromium.org/5368002/diff/14001/chrome/browser/background_mode_manager.cc File chrome/browser/background_mode_manager.cc (right): http://codereview.chromium.org/5368002/diff/14001/chrome/browser/background_mode_manager.cc#newcode249 chrome/browser/background_mode_manager.cc:249: new EnableLaunchOnStartupTask(this)); See my comment about moving this entire ...
10 years ago (2010-12-03 02:06:59 UTC) #1
Dmitry Titov
Sorry, got srsly sidetracked today... Drew said what I wanted to say about calling profile ...
10 years ago (2010-12-03 04:23:27 UTC) #2
Andrew T Wilson (Slow)
On 2010/12/03 04:23:27, Dmitry Titov wrote: > Sorry, got srsly sidetracked today... > > Drew ...
10 years ago (2010-12-03 18:45:18 UTC) #3
Dmitry Titov
When it tries to set the Chrome as login item, it may bail if the ...
10 years ago (2010-12-03 19:11:44 UTC) #4
Andrew T Wilson (Slow)
Ah, yeah, I see what you're saying now. -atw On Fri, Dec 3, 2010 at ...
10 years ago (2010-12-03 19:13:52 UTC) #5
The wrong rickcam account
Please take another look. I've refactored differently as suggested by Drew, and switched to using ...
10 years ago (2010-12-04 02:08:04 UTC) #6
Andrew T Wilson (Slow)
This is much cleaner after this refactoring - thanks for tackling this! I have have ...
10 years ago (2010-12-04 18:49:48 UTC) #7
Andrew T Wilson (Slow)
Hmmm, one more thought about the NOT_REACHED suggestion - this might break unit tests on ...
10 years ago (2010-12-04 19:30:48 UTC) #8
The wrong rickcam account
Please take another look: - header cleanup - additional anonymous namespaces - Replaced several LOGs ...
10 years ago (2010-12-07 22:59:57 UTC) #9
Andrew T Wilson (Slow)
10 years ago (2010-12-08 01:53:30 UTC) #10
LGTM with one more required cleanup and one question:

1) Remove prefs::kLaunchOnStartupResetAllowed in pref_names.h/cc
2) Make sure the CFPreference stuff is really per-executable so we don't break
multi-channel support.

Powered by Google App Engine
This is Rietveld 408576698