|
|
Chromium Code Reviews
DescriptionConvert ExtensionLoaderHandler to use the new navigation callbacks.
BUG=682002
Review-Url: https://codereview.chromium.org/2648803002
Cr-Commit-Position: refs/heads/master@{#445550}
Committed: https://chromium.googlesource.com/chromium/src/+/062a42c6769d9d6f6a3ce699c0acc758636f924e
Patch Set 1 #Patch Set 2 : fix #Patch Set 3 : better fix #
Total comments: 5
Patch Set 4 : review comment #Patch Set 5 : use GetReloadType #
Messages
Total messages: 38 (29 generated)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Patchset #1 (id:1) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Patchset #1 (id:20001) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Convert ExtensionLoaderHandler to use the new navigation callbacks. BUG=682002 ========== to ========== Convert ExtensionLoaderHandler to use the new navigation callbacks. BUG=682002 ==========
jam@chromium.org changed reviewers: + rdevlin.cronin@chromium.org
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... File chrome/browser/ui/webui/extensions/extension_loader_handler.cc (right): https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... chrome/browser/ui/webui/extensions/extension_loader_handler.cc:173: void ExtensionLoaderHandler::ReadyToCommitNavigation( The cheatsheet linked in the bug and the comments in WebContentsObserver seem to indicate that DidStartNavigationToPendingEntry is replaced by DidStartNavigation - why's this differ? https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... chrome/browser/ui/webui/extensions/extension_loader_handler.cc:175: if (!navigation_handle->IsInMainFrame() || navigation_handle->IsSamePage()) Why do we need the IsInMainFrame() check? And won't IsSamePage() always be false for PAGE_TRANSITION_RELOAD? (which, separately, is a little confusing, since it is the same page, but that's a different discussion...)
https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... File chrome/browser/ui/webui/extensions/extension_loader_handler.cc (right): https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... chrome/browser/ui/webui/extensions/extension_loader_handler.cc:173: void ExtensionLoaderHandler::ReadyToCommitNavigation( On 2017/01/21 02:01:17, Devlin (slow) wrote: > The cheatsheet linked in the bug and the comments in WebContentsObserver seem to > indicate that DidStartNavigationToPendingEntry is replaced by DidStartNavigation > - why's this differ? Generally that's the replacement. In this case, the method needs the transition type. That's not available in DidStartNavigation. that could be done, but only with PlzNavigate, so I filed 683402 to track making this getter available early once PlzNavigate is the only code path. So in the meantime, this is as early as possible to get the transition type. Note I've manually tested this cl and the other one, with and without PlzNavigate, to make sure the user behavior stays the same. https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... chrome/browser/ui/webui/extensions/extension_loader_handler.cc:175: if (!navigation_handle->IsInMainFrame() || navigation_handle->IsSamePage()) On 2017/01/21 02:01:17, Devlin (slow) wrote: > Why do we need the IsInMainFrame() check? To keep the same behavior as before, since DidStartNavigationToPendingEntry fired only for main frames while DidStartNavigation also fires for subframes. > And won't IsSamePage() always be > false for PAGE_TRANSITION_RELOAD? (which, separately, is a little confusing, > since it is the same page, but that's a different discussion...) Yep that's true; I had kept it in to keep the same behavior as before but you're right it's redundant. Removed.
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... File chrome/browser/ui/webui/extensions/extension_loader_handler.cc (right): https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... chrome/browser/ui/webui/extensions/extension_loader_handler.cc:173: void ExtensionLoaderHandler::ReadyToCommitNavigation( actually, turns out that my change for ContentFaviconDriver necessitated plumbing more reload information to NavigationHandle which is available at construction. hold off reviewing this, when that other cl lands I can change this and the other extensions cl to use DidStartNavigation.
On 2017/01/21 07:17:54, jam wrote: > https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... > File chrome/browser/ui/webui/extensions/extension_loader_handler.cc (right): > > https://codereview.chromium.org/2648803002/diff/80001/chrome/browser/ui/webui... > chrome/browser/ui/webui/extensions/extension_loader_handler.cc:173: void > ExtensionLoaderHandler::ReadyToCommitNavigation( > actually, turns out that my change for ContentFaviconDriver necessitated > plumbing more reload information to NavigationHandle which is available at > construction. > > hold off reviewing this, when that other cl lands I can change this and the > other extensions cl to use DidStartNavigation. acknowledged; ping again when ready. :)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
ptal
On 2017/01/23 23:46:05, jam wrote: > ptal Super simple! I like it. LGTM
The CQ bit was checked by jam@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1485215785452140,
"parent_rev": "ec77ce738b4415bb5d2bf6aa2779931a06676dfe", "commit_rev":
"062a42c6769d9d6f6a3ce699c0acc758636f924e"}
Message was sent while issue was closed.
Description was changed from ========== Convert ExtensionLoaderHandler to use the new navigation callbacks. BUG=682002 ========== to ========== Convert ExtensionLoaderHandler to use the new navigation callbacks. BUG=682002 Review-Url: https://codereview.chromium.org/2648803002 Cr-Commit-Position: refs/heads/master@{#445550} Committed: https://chromium.googlesource.com/chromium/src/+/062a42c6769d9d6f6a3ce699c0ac... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as https://chromium.googlesource.com/chromium/src/+/062a42c6769d9d6f6a3ce699c0ac... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
