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

Issue 2710833002: Refactor ChromeContextMenuPopulator population (Closed)

Created:
3 years, 10 months ago by JJ
Modified:
3 years, 9 months ago
CC:
chromium-reviews, agrieve+watch_chromium.org, Theresa
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor ChromeContextMenuPopulator population In preparation for the redesign of Chrome's Context Menu this cl refactors the population into a seperate method. As a result of this refactor, several tests are now added to confirm that the context menu shows what is expected in a context (which surprisingly wasn't there beforehand). BUG=655359 Review-Url: https://codereview.chromium.org/2710833002 Cr-Commit-Position: refs/heads/master@{#454077} Committed: https://chromium.googlesource.com/chromium/src/+/4de4918b64f6fc0bdd4022d452bd693a785d6074

Patch Set 1 #

Total comments: 25

Patch Set 2 : Fixed based off tedchoc #

Patch Set 3 : Two comments I missed #

Total comments: 8

Patch Set 4 : Fixed based off rebase + tedchoc comments #

Total comments: 1

Patch Set 5 : Added clarifying comment #

Total comments: 12

Patch Set 6 : Fiexed based off tedchoc comments #

Total comments: 5

Patch Set 7 : Fixed based off Ted's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -102 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java View 1 2 3 4 5 6 4 chunks +112 lines, -102 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java View 1 2 3 4 5 3 chunks +78 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
JJ
Hello dtrainor@chromium.org and tedchoc@chromium.org, you both seem to have had the most recent reviews within ...
3 years, 10 months ago (2017-02-22 00:17:07 UTC) #2
JJ
Just one bit of info on a method I made. https://codereview.chromium.org/2710833002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java (right): https://codereview.chromium.org/2710833002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java#newcode418 ...
3 years, 10 months ago (2017-02-22 00:57:43 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/2710833002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2710833002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode208 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:208: boolean isGroupMessage = MailTo.isMailTo(params.getLinkUrl()) Looks like we call these ...
3 years, 10 months ago (2017-02-22 05:36:33 UTC) #4
Ted C
https://codereview.chromium.org/2710833002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2710833002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode212 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:212: Map<Integer, String> menuIdMap = new HashMap<>(menu.size()); Take a look ...
3 years, 10 months ago (2017-02-22 06:10:54 UTC) #5
JJ
So I did some stuff based on your changes. I did ask for some follow ...
3 years, 10 months ago (2017-02-22 19:09:39 UTC) #6
JJ
I forgot my bike so I have to wait for the bus so here I ...
3 years, 10 months ago (2017-02-23 03:29:14 UTC) #11
JJ
friendlyping.gif! https://drive.google.com/a/google.com/file/d/0B6D5A57VLDpeYjBUS3ZBeVFwLUk/view?usp=sharing
3 years, 9 months ago (2017-02-28 00:15:45 UTC) #12
David Trainor- moved to gerrit
lgtm lgtm % tedchoc
3 years, 9 months ago (2017-02-28 01:13:11 UTC) #13
Ted C
https://codereview.chromium.org/2710833002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2710833002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode209 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:209: || UrlUtilities.isTelScheme(params.getLinkUrl())); this looks to be indented too much...is ...
3 years, 9 months ago (2017-02-28 06:10:13 UTC) #14
JJ
One of the comments took a little longer than expected but it should be all ...
3 years, 9 months ago (2017-03-01 01:41:05 UTC) #15
Ted C
https://codereview.chromium.org/2710833002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2710833002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:56: private static final Integer[] BASE_WHITELIST = { tangent...do we ...
3 years, 9 months ago (2017-03-01 06:30:50 UTC) #16
JJ
Fixed based off the comments. A running theme is that there are few methods that ...
3 years, 9 months ago (2017-03-01 17:43:11 UTC) #17
Ted C
lgtm w/ a couple small last things https://codereview.chromium.org/2710833002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2710833002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode54 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:54: private static ...
3 years, 9 months ago (2017-03-01 17:57:41 UTC) #18
JJ
Fixed all things. Pointed to the most recent bug. Everything should be in order! https://codereview.chromium.org/2710833002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java ...
3 years, 9 months ago (2017-03-01 19:00:50 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2710833002/120001
3 years, 9 months ago (2017-03-01 22:39:35 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 22:47:04 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/4de4918b64f6fc0bdd4022d452bd...

Powered by Google App Engine
This is Rietveld 408576698