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

Issue 1956633002: Menu hook plumbed through to RequestCoordinator. (Closed)

Created:
4 years, 7 months ago by Pete Williamson
Modified:
4 years, 7 months ago
CC:
chromium-reviews, fgorski+watch_chromium.org, romax+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Menu hook plumbed through to RequestCoordinator. We added a menu hook previously when our Background Offline Pages flag is turned on. This changelist catches the click on the menu item, and creates a RequestCoordinator to handle the request. We also added a unit test for the existing RequestCoordinator factory. Since the BrowserContext is not available from the context of the Menu Populator or the Menu helper class, I added a method to the delegate interface to be able to get it from the tab class (actually, I create the OfflinePageBridge in the tab delegate so we don't have to pass the browser context around just to get the OfflinePageBridge. BUG= Committed: https://crrev.com/d3849706b141072fcca07c728cd19af07ad3a56b Cr-Commit-Position: refs/heads/master@{#392391}

Patch Set 1 #

Total comments: 12

Patch Set 2 : CR feedback per FGorski && DougArnett #

Total comments: 14

Patch Set 3 : CR fixes per JianLi #

Patch Set 4 : Improve namespace name. #

Total comments: 4

Patch Set 5 : A few more changes per JianLi and FGorski. #

Total comments: 4

Patch Set 6 : CR feedback per BauerB #

Patch Set 7 : Remove reference to unit test which I forgot to include #

Messages

Total messages: 30 (10 generated)
Pete Williamson
Jian: Please review the changes to the OfflinePageBridge, both C++ and Java sides. Doug: Please ...
4 years, 7 months ago (2016-05-06 01:04:04 UTC) #2
fgorski
https://codereview.chromium.org/1956633002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java (right): https://codereview.chromium.org/1956633002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java#newcode117 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java:117: OfflinePageBridge getOfflinePageBridge(); Looking at how this interface is structured, ...
4 years, 7 months ago (2016-05-06 07:03:09 UTC) #4
dougarnett
https://codereview.chromium.org/1956633002/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/1956633002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode353 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:353: } else if (itemId == R.id.contextmenu_save_offline) { btw, I ...
4 years, 7 months ago (2016-05-06 16:47:41 UTC) #5
Pete Williamson
CR feedback for FGorski && DougArnett https://codereview.chromium.org/1956633002/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/1956633002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode353 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:353: } else if ...
4 years, 7 months ago (2016-05-06 18:28:13 UTC) #6
dougarnett
lgtm
4 years, 7 months ago (2016-05-06 19:26:52 UTC) #7
jianli
https://codereview.chromium.org/1956633002/diff/20001/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/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode354 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:354: // TODO(petewil): This is for testing only, remove it ...
4 years, 7 months ago (2016-05-06 20:39:04 UTC) #8
fgorski
lgtm with comments and seconding comments from Jian Li. https://codereview.chromium.org/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java (right): https://codereview.chromium.org/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode420 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:420: ...
4 years, 7 months ago (2016-05-06 21:28:10 UTC) #9
Pete Williamson
https://codereview.chromium.org/1956633002/diff/20001/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/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode354 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:354: // TODO(petewil): This is for testing only, remove it ...
4 years, 7 months ago (2016-05-06 21:30:28 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1956633002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1956633002/40001
4 years, 7 months ago (2016-05-06 21:30:49 UTC) #12
Pete Williamson
Fix and comment for FGorski https://codereview.chromium.org/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java (right): https://codereview.chromium.org/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode420 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:420: * @param ClientId The ...
4 years, 7 months ago (2016-05-06 21:36:12 UTC) #13
jianli
lgtm https://codereview.chromium.org/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java (right): https://codereview.chromium.org/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java#newcode174 chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java:174: long offline_id = now.getTime(); On 2016/05/06 21:30:28, Pete ...
4 years, 7 months ago (2016-05-06 21:48:06 UTC) #14
Pete Williamson
https://codereview.chromium.org/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java (right): https://codereview.chromium.org/1956633002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java#newcode174 chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java:174: long offline_id = now.getTime(); On 2016/05/06 21:48:05, jianli wrote: ...
4 years, 7 months ago (2016-05-06 23:56:27 UTC) #15
Pete Williamson
bauerb@chromium.org: Please review changes in ChromeContextMenuPopulator.java, ChromeContextMenuItemDelegate.java, and TabContextMenuItemDelegate.java The intent of this change is ...
4 years, 7 months ago (2016-05-07 00:01:22 UTC) #17
Bernhard Bauer
LGTM https://codereview.chromium.org/1956633002/diff/80001/chrome/browser/android/offline_pages/offline_page_bridge.cc File chrome/browser/android/offline_pages/offline_page_bridge.cc (right): https://codereview.chromium.org/1956633002/diff/80001/chrome/browser/android/offline_pages/offline_page_bridge.cc#newcode329 chrome/browser/android/offline_pages/offline_page_bridge.cc:329: client_id.name_space = ConvertJavaStringToUTF8(env, j_client_id_namespace); Nit: I would rename ...
4 years, 7 months ago (2016-05-09 10:00:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1956633002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1956633002/100001
4 years, 7 months ago (2016-05-09 17:37:54 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/62798) android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, ...
4 years, 7 months ago (2016-05-09 17:53:55 UTC) #23
Pete Williamson
Oops, I forgot to add the RequestCoordinatorUnittest to this patch, I will include it with ...
4 years, 7 months ago (2016-05-09 18:45:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1956633002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1956633002/120001
4 years, 7 months ago (2016-05-09 18:46:06 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-09 19:22:14 UTC) #28
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 19:24:04 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d3849706b141072fcca07c728cd19af07ad3a56b
Cr-Commit-Position: refs/heads/master@{#392391}

Powered by Google App Engine
This is Rietveld 408576698