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

Issue 10273019: Omnibox: Add logging of what type of page was displayed when it's used (Closed)

Created:
8 years, 7 months ago by Mark P
Modified:
8 years, 7 months ago
CC:
chromium-reviews, MAD, James Su, Ilya Sherman, jar (doing other things)
Visibility:
Public.

Description

Omnibox: Add logging of what type of page was displayed when it's used For UMA opted-in users, this adds a new field to the omnibox event record that's uploaded when the user uses the omnibox. In particular, it records a simple enum of what type of page the user was looking at, such as a generic web page or the new tab page. This change only adds the field to the protocol buffer upload format, not the XML format. If I decide later I want to add it to the XML format, I'll do it in another changelist. BUG= TEST=using VLOG(1) of what would be uploaded Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134824

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove extraneous block. #

Patch Set 3 : current_page -> current_page_classification #

Total comments: 2

Patch Set 4 : Line wrapping. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -1 line) Patch
M chrome/browser/autocomplete/autocomplete.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/metrics/proto/omnibox_event.proto View 1 2 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Mark P
Can both of you please take a look at this changelist? thanks, mark
8 years, 7 months ago (2012-04-30 22:19:32 UTC) #1
Ilya Sherman
Metrics changes lgtm http://codereview.chromium.org/10273019/diff/1/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/10273019/diff/1/chrome/browser/autocomplete/autocomplete_edit.cc#newcode545 chrome/browser/autocomplete/autocomplete_edit.cc:545: LOG(INFO) << "Current URL is valid: ...
8 years, 7 months ago (2012-04-30 22:28:11 UTC) #2
Peter Kasting
Nit: Seems kind of like we should name |current_page| as |{current,visible,}page_classification| instead. http://codereview.chromium.org/10273019/diff/1/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc ...
8 years, 7 months ago (2012-04-30 22:30:19 UTC) #3
Peter Kasting
LGTM otherwise
8 years, 7 months ago (2012-04-30 22:30:33 UTC) #4
Mark P
> Nit: Seems kind of like we should name |current_page| as > |{current,visible,}page_classification| instead. This ...
8 years, 7 months ago (2012-05-01 00:02:52 UTC) #5
Peter Kasting
On 2012/05/01 00:02:52, Mark P wrote: > > Nit: Seems kind of like we should ...
8 years, 7 months ago (2012-05-01 00:04:12 UTC) #6
Mark P
Renamed current_page to current_page_classification. I'll assume Ilya's LGTM from the metrics side (and that's he's ...
8 years, 7 months ago (2012-05-01 20:27:33 UTC) #7
jar (doing other things)
lgtm http://codereview.chromium.org/10273019/diff/8001/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/10273019/diff/8001/chrome/browser/autocomplete/autocomplete_edit.cc#newcode1151 chrome/browser/autocomplete/autocomplete_edit.cc:1151: OmniboxEventProto_PageClassification_INVALID_SPEC; nit: Probably no need to wrap that ...
8 years, 7 months ago (2012-05-01 22:00:02 UTC) #8
Mark P
Submitting in a few moments. http://codereview.chromium.org/10273019/diff/8001/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/10273019/diff/8001/chrome/browser/autocomplete/autocomplete_edit.cc#newcode1151 chrome/browser/autocomplete/autocomplete_edit.cc:1151: OmniboxEventProto_PageClassification_INVALID_SPEC; On 2012/05/01 22:00:02, ...
8 years, 7 months ago (2012-05-01 22:07:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/10273019/10003
8 years, 7 months ago (2012-05-01 22:10:08 UTC) #10
commit-bot: I haz the power
8 years, 7 months ago (2012-05-01 23:54:54 UTC) #11
Change committed as 134824

Powered by Google App Engine
This is Rietveld 408576698