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

Issue 1131303002: Cleanup PushMessagingAppIdentifier (Closed)

Created:
5 years, 7 months ago by johnme
Modified:
5 years, 7 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, mvanouwerkerk+watch_chromium.org, peter+watch_chromium.org, johnme+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@app_identifier
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup PushMessagingAppIdentifier In particular, the IsValid method had a confusing dual purpose - it was used both to sanity check the inputs, and to check whether the instances returned by the Get methods were null (i.e. Get failed). It has been split into is_null() and DCheckValid(). Note that having DCheckValid as a method also gives better stacktraces than the old DCHECK(IsValid()) style, since stacktraces will indicate which check failed. BUG=458592 Committed: https://crrev.com/db9cb0e5848645420e439277974b5aa379d83553 Cr-Commit-Position: refs/heads/master@{#329406}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fix test #

Patch Set 3 : Address peter's comments & add DCHECKS to getters #

Patch Set 4 : Undo accidental test change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -68 lines) Patch
M chrome/browser/push_messaging/push_messaging_app_identifier.h View 1 2 5 chunks +36 lines, -17 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_app_identifier.cc View 7 chunks +34 lines, -32 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc View 1 3 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 1 2 7 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
johnme
5 years, 7 months ago (2015-05-08 17:02:42 UTC) #2
Peter Beverloo
lgtm % comments https://codereview.chromium.org/1131303002/diff/1/chrome/browser/push_messaging/push_messaging_app_identifier.h File chrome/browser/push_messaging/push_messaging_app_identifier.h (right): https://codereview.chromium.org/1131303002/diff/1/chrome/browser/push_messaging/push_messaging_app_identifier.h#newcode24 chrome/browser/push_messaging/push_messaging_app_identifier.h:24: // Type used to identify a ...
5 years, 7 months ago (2015-05-11 16:54:08 UTC) #3
johnme
Addressed peter's comments (thanks!), and also added DCHECKS to getters. https://codereview.chromium.org/1131303002/diff/1/chrome/browser/push_messaging/push_messaging_app_identifier.h File chrome/browser/push_messaging/push_messaging_app_identifier.h (right): https://codereview.chromium.org/1131303002/diff/1/chrome/browser/push_messaging/push_messaging_app_identifier.h#newcode24 ...
5 years, 7 months ago (2015-05-12 13:21:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131303002/60001
5 years, 7 months ago (2015-05-12 13:25:43 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-12 14:55:51 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 14:56:43 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/db9cb0e5848645420e439277974b5aa379d83553
Cr-Commit-Position: refs/heads/master@{#329406}

Powered by Google App Engine
This is Rietveld 408576698