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

Issue 9853010: ProfileManager: Remove CHECKs. (Closed)

Created:
8 years, 9 months ago by marja
Modified:
8 years, 8 months ago
Reviewers:
Bernhard Bauer, sail
CC:
chromium-reviews, rginda+watch_chromium.org, rpetterson, sail, sky, Bernhard Bauer
Visibility:
Public.

Description

ProfileManager: Remove CHECKs. The cause for the "last profile appears multiple times in the last active profile list" seems to be that several profiles have the same string representation (GetPath().BaseName()). crbug.com/120112 addresses that problem and this CL works around it. BUG=114766 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129426

Patch Set 1 #

Total comments: 7

Patch Set 2 : Code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -27 lines) Patch
M chrome/browser/profiles/profile_manager.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 3 chunks +10 lines, -27 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
marja
Hi {rlp,sail}, could one of you review this? (sky, FYI, this is related to the ...
8 years, 9 months ago (2012-03-26 09:41:07 UTC) #1
sail
Could you add bug 120112 to the CL description. Also, I really can't think of ...
8 years, 9 months ago (2012-03-26 16:15:47 UTC) #2
marja
Thanks for comments! http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (left): http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc#oldcode584 chrome/browser/profiles/profile_manager.cc:584: CHECK(profile_paths.find(profile_path) == <<< this was the ...
8 years, 9 months ago (2012-03-27 08:18:00 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc#newcode542 chrome/browser/profiles/profile_manager.cc:542: std::remove(active_profiles_.begin(), active_profiles_.end(), Why are you calling std::remove() *and* erase()? ...
8 years, 9 months ago (2012-03-27 08:35:51 UTC) #4
marja
Thanks for comments! http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc#newcode542 chrome/browser/profiles/profile_manager.cc:542: std::remove(active_profiles_.begin(), active_profiles_.end(), On 2012/03/27 08:35:51, Bernhard ...
8 years, 9 months ago (2012-03-27 08:57:20 UTC) #5
Bernhard Bauer
http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc#newcode542 chrome/browser/profiles/profile_manager.cc:542: std::remove(active_profiles_.begin(), active_profiles_.end(), On 2012/03/27 08:57:20, marja wrote: > On ...
8 years, 9 months ago (2012-03-27 09:13:51 UTC) #6
marja
http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/9853010/diff/1/chrome/browser/profiles/profile_manager.cc#newcode542 chrome/browser/profiles/profile_manager.cc:542: std::remove(active_profiles_.begin(), active_profiles_.end(), On 2012/03/27 09:13:52, Bernhard Bauer wrote: > ...
8 years, 9 months ago (2012-03-27 09:29:31 UTC) #7
Bernhard Bauer
Thanks! LGTM.
8 years, 9 months ago (2012-03-27 09:37:04 UTC) #8
sail
Hi Marja, do you know how many crash reports we're getting for this issue? Two ...
8 years, 8 months ago (2012-03-27 17:44:01 UTC) #9
sail
Talked to marja over IM. So far we can only find 3 crash reports for ...
8 years, 8 months ago (2012-03-27 18:04:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/9853010/8001
8 years, 8 months ago (2012-03-27 18:32:11 UTC) #11
marja
So, the intention of this CL is to remove the unnecessary CHECKs from the release ...
8 years, 8 months ago (2012-03-27 18:32:59 UTC) #12
commit-bot: I haz the power
Try job failure for 9853010-8001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-03-27 19:53:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/9853010/8001
8 years, 8 months ago (2012-03-28 07:07:43 UTC) #14
commit-bot: I haz the power
Try job failure for 9853010-8001 on win_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=14969 Step "update" is always ...
8 years, 8 months ago (2012-03-28 07:20:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/9853010/8001
8 years, 8 months ago (2012-03-28 10:41:22 UTC) #16
commit-bot: I haz the power
Try job failure for 9853010-8001 on linux_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=13273 Step "update" is always ...
8 years, 8 months ago (2012-03-28 12:32:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/9853010/8001
8 years, 8 months ago (2012-03-28 13:11:04 UTC) #18
commit-bot: I haz the power
8 years, 8 months ago (2012-03-28 16:35:30 UTC) #19
Change committed as 129426

Powered by Google App Engine
This is Rietveld 408576698