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

Issue 6208003: Add a Node message in the malware details protocol buffer. This allows us to ... (Closed)

Created:
9 years, 11 months ago by panayiotis
Modified:
9 years, 7 months ago
Reviewers:
lzheng, noelutz
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add a unique ID for each URL in the malware details protocol buffer. This allows us to save some space in the protocol buffer by not repeating the urls of parents and children. Also, change some string fields to bytes to avoid the implicit utf-8 conversion when not applicable. BUG=60831 TEST=relevant unit_tests, browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71384

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -92 lines) Patch
M chrome/browser/safe_browsing/malware_details.h View 1 2 3 2 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details.cc View 1 2 3 4 5 3 chunks +46 lines, -18 lines 0 comments Download
M chrome/browser/safe_browsing/malware_details_unittest.cc View 1 2 6 chunks +48 lines, -45 lines 0 comments Download
M chrome/browser/safe_browsing/report.proto View 1 2 2 chunks +23 lines, -24 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
panayiotis
9 years, 11 months ago (2011-01-11 22:23:58 UTC) #1
noelutz
Mostly LG. Just two minor comments. noe. http://codereview.chromium.org/6208003/diff/1/chrome/browser/safe_browsing/malware_details.cc File chrome/browser/safe_browsing/malware_details.cc (right): http://codereview.chromium.org/6208003/diff/1/chrome/browser/safe_browsing/malware_details.cc#newcode46 chrome/browser/safe_browsing/malware_details.cc:46: *node = ...
9 years, 11 months ago (2011-01-11 22:28:26 UTC) #2
panayiotis
Good points, turned to CHECKs. On Tue, Jan 11, 2011 at 2:28 PM, <noelutz@google.com> wrote: ...
9 years, 11 months ago (2011-01-11 22:45:38 UTC) #3
lzheng
http://codereview.chromium.org/6208003/diff/7001/chrome/browser/safe_browsing/malware_details.cc File chrome/browser/safe_browsing/malware_details.cc (right): http://codereview.chromium.org/6208003/diff/7001/chrome/browser/safe_browsing/malware_details.cc#newcode73 chrome/browser/safe_browsing/malware_details.cc:73: FindOrCreateResource(url, &url_resource, &url_node); Can we break this function to ...
9 years, 11 months ago (2011-01-12 22:30:15 UTC) #4
panayiotis
Thanks Lei, please have another look. http://codereview.chromium.org/6208003/diff/7001/chrome/browser/safe_browsing/malware_details.cc File chrome/browser/safe_browsing/malware_details.cc (right): http://codereview.chromium.org/6208003/diff/7001/chrome/browser/safe_browsing/malware_details.cc#newcode73 chrome/browser/safe_browsing/malware_details.cc:73: FindOrCreateResource(url, &url_resource, &url_node); ...
9 years, 11 months ago (2011-01-13 02:25:00 UTC) #5
lzheng
http://codereview.chromium.org/6208003/diff/25001/chrome/browser/safe_browsing/malware_details.cc File chrome/browser/safe_browsing/malware_details.cc (right): http://codereview.chromium.org/6208003/diff/25001/chrome/browser/safe_browsing/malware_details.cc#newcode59 chrome/browser/safe_browsing/malware_details.cc:59: CHECK(url_resource != NULL); nit: Do you still feel the ...
9 years, 11 months ago (2011-01-13 20:18:33 UTC) #6
panayiotis
No, removed. On Thu, Jan 13, 2011 at 12:18 PM, <lzheng@chromium.org> wrote: > > http://codereview.chromium.org/6208003/diff/25001/chrome/browser/safe_browsing/malware_details.cc ...
9 years, 11 months ago (2011-01-13 21:08:39 UTC) #7
lzheng
9 years, 11 months ago (2011-01-13 22:18:25 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698