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

Issue 66993003: Most references to GetActiveEntry removed from chrome/browser/ui.

Created:
7 years, 1 month ago by jww
Modified:
7 years, 1 month ago
CC:
chromium-reviews, skanuj+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, Ilya Sherman, tim+watch_chromium.org, melevin+watch_chromium.org, benquan, dominich, rouslan+autofillwatch_chromium.org, pedrosimonetti+watch_chromium.org, dbeam+watch-ntp_chromium.org, dyu1, haitaol+watch_chromium.org, jfweitz+watch_chromium.org, estade+watch_chromium.org, Jered, tfarina, donnd+watch_chromium.org, David Black, Dane Wallinga, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, rsimha+watch_chromium.org
Visibility:
Public.

Description

Most references to GetActiveEntry removed from chrome/browser/ui. BUG=273710

Patch Set 1 #

Total comments: 22

Patch Set 2 : Updates from nasko comments #

Total comments: 33

Patch Set 3 : Nits and corrections from creis #

Patch Set 4 : Rebase on ToT #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -49 lines) Patch
M chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 6 chunks +15 lines, -16 lines 1 comment Download
M chrome/browser/ui/cocoa/applescript/tab_applescript.mm View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/instant_loader.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/search/instant_page_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/pinned_tab_codec.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/suggestions_page_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
jww
This is my first whack at removing a bunch of GetActiveEntry calls. I removed all ...
7 years, 1 month ago (2013-11-08 22:55:48 UTC) #1
nasko
Great start on this work! It will be great to start out conservatively with replacing ...
7 years, 1 month ago (2013-11-08 23:52:02 UTC) #2
jww
On 2013/11/08 23:52:02, nasko wrote: > Great start on this work! > It will be ...
7 years, 1 month ago (2013-11-08 23:59:57 UTC) #3
nasko
On 2013/11/08 23:59:57, jww wrote: > On 2013/11/08 23:52:02, nasko wrote: > > Great start ...
7 years, 1 month ago (2013-11-09 00:01:54 UTC) #4
jww
On 2013/11/09 00:01:54, nasko wrote: > On 2013/11/08 23:59:57, jww wrote: > > On 2013/11/08 ...
7 years, 1 month ago (2013-11-09 01:33:41 UTC) #5
jww
https://codereview.chromium.org/66993003/diff/1/chrome/browser/ui/browser_commands.cc File chrome/browser/ui/browser_commands.cc (right): https://codereview.chromium.org/66993003/diff/1/chrome/browser/ui/browser_commands.cc#newcode983 chrome/browser/ui/browser_commands.cc:983: return current_tab->GetController().GetVisibleEntry() != NULL; On 2013/11/08 23:52:03, nasko wrote: ...
7 years, 1 month ago (2013-11-11 19:18:50 UTC) #6
Charlie Reis
Quick comment on the PruneAllButVisible case. I can take a look at the rest as ...
7 years, 1 month ago (2013-11-11 22:58:23 UTC) #7
jww
On 2013/11/11 22:58:23, creis wrote: > Quick comment on the PruneAllButVisible case. I can take ...
7 years, 1 month ago (2013-11-11 23:05:54 UTC) #8
Charlie Reis
I'm adding in a lot of reviewers to answer specific questions about code they're likely ...
7 years, 1 month ago (2013-11-12 01:09:28 UTC) #9
benwells
ConvertTabToAppWindow lgtm https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/browser_commands.cc File chrome/browser/ui/browser_commands.cc (right): https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/browser_commands.cc#newcode1139 chrome/browser/ui/browser_commands.cc:1139: const GURL& url = contents->GetController().GetLastCommittedEntry()->GetURL(); On 2013/11/12 ...
7 years, 1 month ago (2013-11-12 05:32:46 UTC) #10
sreeram
https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/search/search_tab_helper.cc#newcode72 chrome/browser/ui/search/search_tab_helper.cc:72: contents->GetController().GetLastCommittedEntry(); On 2013/11/12 01:09:29, creis wrote: > @sreeram: I ...
7 years, 1 month ago (2013-11-12 09:01:24 UTC) #11
pink (ping after 24hrs)
https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/cocoa/applescript/tab_applescript.mm File chrome/browser/ui/cocoa/applescript/tab_applescript.mm (right): https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/cocoa/applescript/tab_applescript.mm#newcode117 chrome/browser/ui/cocoa/applescript/tab_applescript.mm:117: webContents_->GetController().GetLastCommittedEntry(); On 2013/11/12 01:09:29, creis wrote: > @pinkerton: > ...
7 years, 1 month ago (2013-11-12 15:27:31 UTC) #12
samarth
https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/search/instant_controller.cc#newcode64 chrome/browser/ui/search/instant_controller.cc:64: const content::NavigationEntry* entry = controller->GetLastCommittedEntry(); On 2013/11/12 01:09:29, creis ...
7 years, 1 month ago (2013-11-12 15:55:06 UTC) #13
jww
creis, I'll split this into separate CLs after LGTMs from the various reviewers. https://codereview.chromium.org/66993003/diff/140001/chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc File ...
7 years, 1 month ago (2013-11-12 22:32:49 UTC) #14
Charlie Reis
Thanks all for the quick reviews! @sschmitz: Can you look at my comment in browser_commands.cc? ...
7 years, 1 month ago (2013-11-13 18:40:02 UTC) #15
samarth
lgtm
7 years, 1 month ago (2013-11-13 19:59:44 UTC) #16
sky
pinned_tab_codec.cc LGTM
7 years, 1 month ago (2013-11-13 22:03:40 UTC) #17
jww
7 years, 1 month ago (2013-11-14 19:40:24 UTC) #18
jww
@sky, would you mind taking a look at one more comment? Thanks a lot! https://codereview.chromium.org/66993003/diff/590001/chrome/browser/ui/browser_commands.cc ...
7 years, 1 month ago (2013-11-15 23:10:49 UTC) #19
sky
SLGTM
7 years, 1 month ago (2013-11-16 03:04:55 UTC) #20
jww
7 years, 1 month ago (2013-11-16 05:04:21 UTC) #21
On 2013/11/16 03:04:55, sky wrote:
> SLGTM

Just a heads up to everyone that I've broken this down into several smaller
chunks to be committed separately:
https://codereview.chromium.org/74563003/
https://codereview.chromium.org/68713009/
https://codereview.chromium.org/59603009/
https://codereview.chromium.org/68033004/
https://codereview.chromium.org/58963004/

Powered by Google App Engine
This is Rietveld 408576698