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

Issue 10702159: Implement lock file for windows profiles. (Closed)

Created:
8 years, 5 months ago by pastarmovj
Modified:
8 years, 5 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews
Visibility:
Public.

Description

Implement lock file for windows profiles. BUG=120389 TEST=Start chrome from two PCs at the same time with shared profile and observe the second instance not starting at all. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147121

Patch Set 1 : . #

Patch Set 2 : Moved the check to after checking for local instances. #

Total comments: 6

Patch Set 3 : Refactored to production code. #

Total comments: 2

Patch Set 4 : Only create lock file if no remote window is present. #

Total comments: 2

Patch Set 5 : Fixed comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -17 lines) Patch
M chrome/browser/process_singleton.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/process_singleton_win.cc View 1 2 3 4 4 chunks +41 lines, -17 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
pastarmovj
Hi guys, this is my proposal for making chrome respect a lock file on windows ...
8 years, 5 months ago (2012-07-11 23:02:02 UTC) #1
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/10702159/diff/4001/chrome/browser/process_singleton_win.cc File chrome/browser/process_singleton_win.cc (right): http://codereview.chromium.org/10702159/diff/4001/chrome/browser/process_singleton_win.cc#newcode178 chrome/browser/process_singleton_win.cc:178: // We have to make sure there is no ...
8 years, 5 months ago (2012-07-13 23:16:53 UTC) #2
pastarmovj
Thanks for the review, Carlos! Please have a look at my comments on your questions ...
8 years, 5 months ago (2012-07-14 01:21:58 UTC) #3
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/10702159/diff/10001/chrome/browser/process_singleton_win.cc File chrome/browser/process_singleton_win.cc (right): http://codereview.chromium.org/10702159/diff/10001/chrome/browser/process_singleton_win.cc#newcode191 chrome/browser/process_singleton_win.cc:191: DWORD error = GetLastError(); this version I like better. ...
8 years, 5 months ago (2012-07-16 20:36:31 UTC) #4
pastarmovj
Addressed your question in the code. PTAL. http://codereview.chromium.org/10702159/diff/10001/chrome/browser/process_singleton_win.cc File chrome/browser/process_singleton_win.cc (right): http://codereview.chromium.org/10702159/diff/10001/chrome/browser/process_singleton_win.cc#newcode191 chrome/browser/process_singleton_win.cc:191: DWORD error ...
8 years, 5 months ago (2012-07-16 21:17:53 UTC) #5
cpu_(ooo_6.6-7.5)
lgtm https://chromiumcodereview.appspot.com/10702159/diff/15002/chrome/browser/process_singleton_win.cc File chrome/browser/process_singleton_win.cc (right): https://chromiumcodereview.appspot.com/10702159/diff/15002/chrome/browser/process_singleton_win.cc#newcode208 chrome/browser/process_singleton_win.cc:208: // Set the window's title to the path ...
8 years, 5 months ago (2012-07-17 19:50:26 UTC) #6
pastarmovj
Fixed the comment and tested with my filer samba share and all seems to be ...
8 years, 5 months ago (2012-07-17 21:14:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/10702159/14002
8 years, 5 months ago (2012-07-17 21:14:55 UTC) #8
commit-bot: I haz the power
8 years, 5 months ago (2012-07-17 22:45:22 UTC) #9
Change committed as 147121

Powered by Google App Engine
This is Rietveld 408576698