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

Issue 1408063003: Cleanup and optimizing switch using fall through. (Closed)

Created:
5 years, 2 months ago by Deepak
Modified:
5 years, 2 months ago
CC:
chromium-reviews, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

When the cases of the switch returns same value then we should use the fall through to optimize and reduce line of code. BUG=544094 Committed: https://crrev.com/39d97acb5f9ba0edf8a1602253efec66b8da4bbc Cr-Commit-Position: refs/heads/master@{#355007}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Addressing nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -27 lines) Patch
M chrome/browser/browsing_data/cookies_tree_model.cc View 1 2 3 3 chunks +15 lines, -27 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Deepak
PTAL
5 years, 2 months ago (2015-10-16 12:55:51 UTC) #2
AKV
peer review looks good to me!
5 years, 2 months ago (2015-10-16 13:02:33 UTC) #3
Deepak
@markusheintz PTAL Thanks
5 years, 2 months ago (2015-10-16 13:07:20 UTC) #5
Deepak
@Bernhard PTAL
5 years, 2 months ago (2015-10-19 13:10:12 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/1408063003/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/1408063003/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc#newcode138 chrome/browser/browsing_data/cookies_tree_model.cc:138: case CookieTreeNode::DetailedInfo::TYPE_DATABASE: // fall through Same as below: Let's ...
5 years, 2 months ago (2015-10-19 13:17:54 UTC) #8
Deepak
PTAL https://codereview.chromium.org/1408063003/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/1408063003/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc#newcode138 chrome/browser/browsing_data/cookies_tree_model.cc:138: case CookieTreeNode::DetailedInfo::TYPE_DATABASE: // fall through On 2015/10/19 13:17:54, ...
5 years, 2 months ago (2015-10-19 14:27:37 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/1408063003/diff/40001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/1408063003/diff/40001/chrome/browser/browsing_data/cookies_tree_model.cc#newcode136 chrome/browser/browsing_data/cookies_tree_model.cc:136: // Fall through each below cases to return true. ...
5 years, 2 months ago (2015-10-19 15:27:44 UTC) #10
Deepak
@Bernhard PTAL https://codereview.chromium.org/1408063003/diff/40001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/1408063003/diff/40001/chrome/browser/browsing_data/cookies_tree_model.cc#newcode136 chrome/browser/browsing_data/cookies_tree_model.cc:136: // Fall through each below cases to ...
5 years, 2 months ago (2015-10-20 02:49:26 UTC) #11
Bernhard Bauer
LGTM, thanks!
5 years, 2 months ago (2015-10-20 08:09:44 UTC) #12
Deepak
On 2015/10/20 08:09:44, Bernhard Bauer wrote: > LGTM, thanks! Thanks Bernhard.
5 years, 2 months ago (2015-10-20 08:10:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408063003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408063003/60001
5 years, 2 months ago (2015-10-20 08:11:16 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-20 08:17:09 UTC) #16
commit-bot: I haz the power
5 years, 2 months ago (2015-10-20 08:18:02 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/39d97acb5f9ba0edf8a1602253efec66b8da4bbc
Cr-Commit-Position: refs/heads/master@{#355007}

Powered by Google App Engine
This is Rietveld 408576698