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

Issue 14080004: Remove some chrome-specific methods from content::WebUI. (Closed)

Created:
7 years, 8 months ago by jam
Modified:
7 years, 8 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, browser-components-watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, estade+watch_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

Remove some chrome-specific methods from content::WebUI. HideFavicon wasn't used anymore. This is probably because now we show a search icon there. FocusLocationBarByDefault can just be implemented in Browser (like Instant). HideURL can just be implemented in ToolbarModelImpl (again, like Instant). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193998

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : review comments and fix null check #

Total comments: 1

Patch Set 4 : review comments and fix null check and tests #

Patch Set 5 : fix tests #

Patch Set 6 : self nits #

Total comments: 1

Patch Set 7 : cros test pass and disable interactive test on mac #

Patch Set 8 : cros test pass #

Patch Set 9 : cros test pass #

Patch Set 10 : fix browser_test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -393 lines) Patch
M chrome/browser/extensions/extension_web_ui.cc View 2 chunks +0 lines, -17 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_focus_uitest.cc View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_activity_ui.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/browser/ui/webui/web_ui_unittest.cc View 1 2 3 1 chunk +0 lines, -240 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 2 chunks +0 lines, -43 lines 0 comments Download
M content/browser/webui/web_ui_impl.h View 2 chunks +0 lines, -9 lines 0 comments Download
M content/browser/webui/web_ui_impl.cc View 2 chunks +1 line, -28 lines 0 comments Download
M content/public/browser/web_contents.h View 2 chunks +0 lines, -6 lines 0 comments Download
M content/public/browser/web_ui.h View 1 chunk +0 lines, -15 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jam
7 years, 8 months ago (2013-04-10 22:54:35 UTC) #1
Avi (use Gerrit)
https://codereview.chromium.org/14080004/diff/18001/chrome/browser/favicon/favicon_tab_helper.cc File chrome/browser/favicon/favicon_tab_helper.cc (right): https://codereview.chromium.org/14080004/diff/18001/chrome/browser/favicon/favicon_tab_helper.cc#newcode25 chrome/browser/favicon/favicon_tab_helper.cc:25: #include "content/public/browser/web_ui.h" Is this include still needed, then? https://codereview.chromium.org/14080004/diff/18001/chrome/browser/ui/toolbar/toolbar_model_impl.cc ...
7 years, 8 months ago (2013-04-10 23:12:15 UTC) #2
jam
https://codereview.chromium.org/14080004/diff/18001/chrome/browser/favicon/favicon_tab_helper.cc File chrome/browser/favicon/favicon_tab_helper.cc (right): https://codereview.chromium.org/14080004/diff/18001/chrome/browser/favicon/favicon_tab_helper.cc#newcode25 chrome/browser/favicon/favicon_tab_helper.cc:25: #include "content/public/browser/web_ui.h" On 2013/04/10 23:12:15, Avi wrote: > Is ...
7 years, 8 months ago (2013-04-10 23:45:35 UTC) #3
Avi (use Gerrit)
comment nitpickiness lgtm https://codereview.chromium.org/14080004/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://codereview.chromium.org/14080004/diff/26001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode150 chrome/browser/ui/toolbar/toolbar_model_impl.cc:150: // extensions can implement the NTP. ...
7 years, 8 months ago (2013-04-11 00:51:19 UTC) #4
jam
Avi: ptal, I updated the cl to fix a few failing tests.
7 years, 8 months ago (2013-04-11 16:56:55 UTC) #5
Avi (use Gerrit)
slgtm https://codereview.chromium.org/14080004/diff/22005/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://codereview.chromium.org/14080004/diff/22005/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode151 chrome/browser/ui/toolbar/toolbar_model_impl.cc:151: // that case, we should prefer what the ...
7 years, 8 months ago (2013-04-11 17:01:37 UTC) #6
jam
Avi, sorry for all the pings. I've had to make minor changes to get the ...
7 years, 8 months ago (2013-04-12 17:27:22 UTC) #7
Avi (use Gerrit)
7 years, 8 months ago (2013-04-12 17:49:03 UTC) #8
I don't know. I've never been into the whole testing mechanism stuff, and am
still being schooled by browser tests.

SLGTM

Powered by Google App Engine
This is Rietveld 408576698