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

Issue 2654433007: [ios] Moves find-in-page code out of Tab and into FindTabHelper. (Closed)

Created:
3 years, 11 months ago by rohitrao (ping after 24h)
Modified:
3 years, 10 months ago
CC:
chromium-reviews, marq+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Moves find-in-page code out of Tab and into FindTabHelper. BUG=681867 Review-Url: https://codereview.chromium.org/2654433007 Cr-Commit-Position: refs/heads/master@{#449610} Committed: https://chromium.googlesource.com/chromium/src/+/b2bf3cb69cae29c1dc85f23a18f2f36587290c1e

Patch Set 1 #

Patch Set 2 : Null checks #

Total comments: 18

Patch Set 3 : Review. #

Patch Set 4 : Rebased. #

Patch Set 5 : Fix tests. #

Total comments: 9

Patch Set 6 : Review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -72 lines) Patch
M ios/chrome/browser/find_in_page/BUILD.gn View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M ios/chrome/browser/find_in_page/find_in_page_controller.mm View 1 2 2 chunks +1 line, -2 lines 0 comments Download
A ios/chrome/browser/find_in_page/find_tab_helper.h View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A ios/chrome/browser/find_in_page/find_tab_helper.mm View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A ios/chrome/browser/find_in_page/find_tab_helper_unittest.mm View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab.h View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 5 7 chunks +2 lines, -15 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 3 4 5 8 chunks +69 lines, -42 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller_unittest.mm View 1 2 5 chunks +1 line, -9 lines 0 comments Download
M ios/chrome/test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
rohitrao (ping after 24h)
Preview of my changes in progress. I've uploaded Step 1, which removes FIP-specific code from ...
3 years, 10 months ago (2017-01-31 15:49:41 UTC) #2
marq (ping after 24h)
https://codereview.chromium.org/2654433007/diff/20001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (right): https://codereview.chromium.org/2654433007/diff/20001/ios/chrome/browser/ui/browser_view_controller.mm#newcode294 ios/chrome/browser/ui/browser_view_controller.mm:294: // nullptr, returns nullptr. Why not just return the ...
3 years, 10 months ago (2017-01-31 16:02:49 UTC) #3
Eugene But (OOO till 7-30)
Could you please add tests for newly written code. https://codereview.chromium.org/2654433007/diff/20001/ios/chrome/browser/find_in_page/find_tab_helper.h File ios/chrome/browser/find_in_page/find_tab_helper.h (right): https://codereview.chromium.org/2654433007/diff/20001/ios/chrome/browser/find_in_page/find_tab_helper.h#newcode9 ios/chrome/browser/find_in_page/find_tab_helper.h:9: ...
3 years, 10 months ago (2017-01-31 19:03:48 UTC) #4
rohitrao (ping after 24h)
https://codereview.chromium.org/2654433007/diff/20001/ios/chrome/browser/find_in_page/find_tab_helper.h File ios/chrome/browser/find_in_page/find_tab_helper.h (right): https://codereview.chromium.org/2654433007/diff/20001/ios/chrome/browser/find_in_page/find_tab_helper.h#newcode9 ios/chrome/browser/find_in_page/find_tab_helper.h:9: #import "ios/web/public/web_state/web_state_observer.h" On 2017/01/31 19:03:48, Eugene But wrote: > ...
3 years, 10 months ago (2017-02-08 16:14:59 UTC) #7
rohitrao (ping after 24h)
The tests are weak sauce, but should get better as I pull more functionality out ...
3 years, 10 months ago (2017-02-08 16:15:52 UTC) #8
marq (ping after 24h)
lgtm
3 years, 10 months ago (2017-02-09 11:22:47 UTC) #19
Eugene But (OOO till 7-30)
lgtm, thank you for the test https://codereview.chromium.org/2654433007/diff/80001/ios/chrome/browser/find_in_page/find_tab_helper.mm File ios/chrome/browser/find_in_page/find_tab_helper.mm (right): https://codereview.chromium.org/2654433007/diff/80001/ios/chrome/browser/find_in_page/find_tab_helper.mm#newcode21 ios/chrome/browser/find_in_page/find_tab_helper.mm:21: web_state->SetUserData(UserDataKey(), nit: do ...
3 years, 10 months ago (2017-02-10 00:03:37 UTC) #20
sdefresne
drive-by comment https://codereview.chromium.org/2654433007/diff/80001/ios/chrome/browser/find_in_page/find_tab_helper.mm File ios/chrome/browser/find_in_page/find_tab_helper.mm (right): https://codereview.chromium.org/2654433007/diff/80001/ios/chrome/browser/find_in_page/find_tab_helper.mm#newcode21 ios/chrome/browser/find_in_page/find_tab_helper.mm:21: web_state->SetUserData(UserDataKey(), On 2017/02/10 00:03:36, Eugene But wrote: ...
3 years, 10 months ago (2017-02-10 09:39:51 UTC) #21
rohitrao (ping after 24h)
https://codereview.chromium.org/2654433007/diff/80001/ios/chrome/browser/find_in_page/find_tab_helper.mm File ios/chrome/browser/find_in_page/find_tab_helper.mm (right): https://codereview.chromium.org/2654433007/diff/80001/ios/chrome/browser/find_in_page/find_tab_helper.mm#newcode21 ios/chrome/browser/find_in_page/find_tab_helper.mm:21: web_state->SetUserData(UserDataKey(), On 2017/02/10 09:39:51, sdefresne wrote: > On 2017/02/10 ...
3 years, 10 months ago (2017-02-10 13:52:18 UTC) #24
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/2654433007/100001
3 years, 10 months ago (2017-02-10 14:06:22 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/b2bf3cb69cae29c1dc85f23a18f2f36587290c1e
3 years, 10 months ago (2017-02-10 14:11:25 UTC) #32
Eugene But (OOO till 7-30)
3 years, 10 months ago (2017-02-10 18:31:20 UTC) #33
Message was sent while issue was closed.
https://codereview.chromium.org/2654433007/diff/80001/ios/chrome/browser/find...
File ios/chrome/browser/find_in_page/find_tab_helper_unittest.mm (right):

https://codereview.chromium.org/2654433007/diff/80001/ios/chrome/browser/find...
ios/chrome/browser/find_in_page/find_tab_helper_unittest.mm:25:
DISALLOW_COPY_AND_ASSIGN(FindTabHelperTest);
On 2017/02/10 13:52:18, rohitrao wrote:
> On 2017/02/10 00:03:36, Eugene But wrote:
> > nit: Do we need this? 
> 
> I've always included it in every class, unless I explicitly want them to be
> copyable.  Does it do harm to have it?
I can't recall any tests which have this macro. I think this affects readability
as this code is not useful but you still have to read it.

Powered by Google App Engine
This is Rietveld 408576698