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

Issue 12463042: Shows chrome-extension urls and greys out the whole url. (Closed)

Created:
7 years, 9 months ago by Patrick Riordan
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, James Su, tfarina, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Shows chrome-extension urls and greys out the whole url. Original: http://i.imgur.com/JICZ06y.png New: http://i.imgur.com/2twzZDL.png BUG=72021 TBR=pkasting@chromium.org TEST= See if chrome-extension urls are shown and see if the whole url is grey. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195131

Patch Set 1 #

Patch Set 2 : Not hacky anymore #

Total comments: 18

Patch Set 3 : Changed name to GreyOutURL, and misc. #

Patch Set 4 : Removed the correct extra newline #

Total comments: 4

Patch Set 5 : Fixed comment nits #

Total comments: 11

Patch Set 6 : Implementation does not depend on having a host and fixed nits. #

Total comments: 12

Patch Set 7 : Simpler and fixed nits #

Patch Set 8 : Does not go through content #

Patch Set 9 : No longer involves toolbar model #

Total comments: 10

Patch Set 10 : Fixed GetText calls and fixed logic errors #

Patch Set 11 : Made the new ShouldDisplayURL, display extension schemes #

Patch Set 12 : Fixed mac typos and fixed unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -37 lines) Patch
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
Patrick Riordan
7 years, 9 months ago (2013-03-27 00:05:40 UTC) #1
Patrick Riordan
7 years, 9 months ago (2013-03-27 00:05:42 UTC) #2
Devlin
Haven't gone through all the code yet, but a couple of things... - be sure ...
7 years, 9 months ago (2013-03-27 00:31:49 UTC) #3
Patrick Riordan
On 2013/03/27 00:31:49, D Cronin wrote: > Haven't gone through all the code yet, but ...
7 years, 9 months ago (2013-03-27 01:06:47 UTC) #4
Devlin
One of the main things is that I really don't like the names "ShouldNotEmphasizeHost" and ...
7 years, 9 months ago (2013-03-27 15:59:52 UTC) #5
Patrick Riordan
https://codereview.chromium.org/12463042/diff/2001/chrome/browser/extensions/extension_web_ui.cc File chrome/browser/extensions/extension_web_ui.cc (right): https://codereview.chromium.org/12463042/diff/2001/chrome/browser/extensions/extension_web_ui.cc#newcode153 chrome/browser/extensions/extension_web_ui.cc:153: // Current behavior of other chrome::// pages is to ...
7 years, 9 months ago (2013-03-27 19:43:27 UTC) #6
Devlin
lgtm with nits. https://chromiumcodereview.appspot.com/12463042/diff/13004/chrome/browser/extensions/extension_web_ui.cc File chrome/browser/extensions/extension_web_ui.cc (right): https://chromiumcodereview.appspot.com/12463042/diff/13004/chrome/browser/extensions/extension_web_ui.cc#newcode153 chrome/browser/extensions/extension_web_ui.cc:153: // Current behavior of other chrome:// ...
7 years, 8 months ago (2013-04-01 20:35:28 UTC) #7
Patrick Riordan
https://chromiumcodereview.appspot.com/12463042/diff/13004/chrome/browser/extensions/extension_web_ui.cc File chrome/browser/extensions/extension_web_ui.cc (right): https://chromiumcodereview.appspot.com/12463042/diff/13004/chrome/browser/extensions/extension_web_ui.cc#newcode153 chrome/browser/extensions/extension_web_ui.cc:153: // Current behavior of other chrome:// pages is to ...
7 years, 8 months ago (2013-04-03 00:19:00 UTC) #8
Patrick Riordan
+ sky for Omnibox ui changes. Hopefully I didn't miss a more suitable reviewer.
7 years, 8 months ago (2013-04-03 03:20:32 UTC) #9
sky
pkasting knows this code better than I. https://chromiumcodereview.appspot.com/12463042/diff/25001/chrome/browser/ui/toolbar/toolbar_model_impl.cc File chrome/browser/ui/toolbar/toolbar_model_impl.cc (right): https://chromiumcodereview.appspot.com/12463042/diff/25001/chrome/browser/ui/toolbar/toolbar_model_impl.cc#newcode184 chrome/browser/ui/toolbar/toolbar_model_impl.cc:184: if (web_contents ...
7 years, 8 months ago (2013-04-03 04:03:57 UTC) #10
Peter Kasting
On 2013/04/03 04:03:57, sky wrote: > pkasting knows this code better than I. I'll take ...
7 years, 8 months ago (2013-04-03 05:18:21 UTC) #11
Peter Kasting
https://chromiumcodereview.appspot.com/12463042/diff/25001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (right): https://chromiumcodereview.appspot.com/12463042/diff/25001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#newcode453 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:453: const bool emphasize = model()->CurrentTextIsURL() && (host.len > 0); ...
7 years, 8 months ago (2013-04-03 22:32:13 UTC) #12
Patrick Riordan
https://chromiumcodereview.appspot.com/12463042/diff/25001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (right): https://chromiumcodereview.appspot.com/12463042/diff/25001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#newcode453 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:453: const bool emphasize = model()->CurrentTextIsURL() && (host.len > 0); ...
7 years, 8 months ago (2013-04-04 01:01:37 UTC) #13
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/12463042/diff/40001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (right): https://chromiumcodereview.appspot.com/12463042/diff/40001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#newcode458 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:458: if (host.is_nonempty() && !toolbar_model()->ShouldGreyOutURL()) { Nit: No need ...
7 years, 8 months ago (2013-04-04 21:07:05 UTC) #14
Patrick Riordan
https://chromiumcodereview.appspot.com/12463042/diff/40001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (right): https://chromiumcodereview.appspot.com/12463042/diff/40001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#newcode458 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:458: if (host.is_nonempty() && !toolbar_model()->ShouldGreyOutURL()) { On 2013/04/04 21:07:05, Peter ...
7 years, 8 months ago (2013-04-10 02:00:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/patrickriordan177@gmail.com/12463042/49001
7 years, 8 months ago (2013-04-10 02:01:38 UTC) #16
commit-bot: I haz the power
Presubmit check for 12463042-49001 failed and returned exit status 1. INFO:root:Found 11 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-10 02:01:43 UTC) #17
Patrick Riordan
+ arv content/browser/webui/web_ui_impl.h and .cc + rdsmith content/public/browser/web_ui.h + jyasskin chrome/browser/extensions/extension_web_ui.cc
7 years, 8 months ago (2013-04-10 02:11:00 UTC) #18
Randy Smith (Not in Mondays)
As noted in the OWNERS file, I'm only able to give reviews on download files, ...
7 years, 8 months ago (2013-04-10 13:51:57 UTC) #19
Jói
I'm not an owner for content/browser. Substituting avi@ who should be able to give you ...
7 years, 8 months ago (2013-04-10 13:58:21 UTC) #20
Jeffrey Yasskin
lgtm for extension_web_ui
7 years, 8 months ago (2013-04-10 14:05:07 UTC) #21
Avi (use Gerrit)
Extensions are a chrome feature. URL bars are a chrome feature. This patch drops both ...
7 years, 8 months ago (2013-04-10 14:11:07 UTC) #22
jam
On 2013/04/10 14:11:07, Avi wrote: > Extensions are a chrome feature. URL bars are a ...
7 years, 8 months ago (2013-04-10 15:29:24 UTC) #23
Jeffrey Yasskin
On 2013/04/10 14:11:07, Avi wrote: > Extensions are a chrome feature. URL bars are a ...
7 years, 8 months ago (2013-04-10 15:30:49 UTC) #24
Avi (use Gerrit)
The dividing line between content and chrome is a bit fuzzy; we're trying to make ...
7 years, 8 months ago (2013-04-10 15:45:58 UTC) #25
jam
On 2013/04/10 15:45:58, Avi wrote: > The dividing line between content and chrome is a ...
7 years, 8 months ago (2013-04-10 20:13:32 UTC) #26
jam
On 2013/04/10 20:13:32, jam wrote: > On 2013/04/10 15:45:58, Avi wrote: > > The dividing ...
7 years, 8 months ago (2013-04-10 20:29:45 UTC) #27
jam
> btw looking at the existing ones more, it looks like some of them aren't ...
7 years, 8 months ago (2013-04-10 22:55:23 UTC) #28
Patrick Riordan
So I should implement ShouldGreyOutURL in ToolbarModelImpl like jam's cl and just check the host?
7 years, 8 months ago (2013-04-11 00:01:25 UTC) #29
jam
On 2013/04/11 00:01:25, Patrick Riordan wrote: > So I should implement ShouldGreyOutURL in ToolbarModelImpl like ...
7 years, 8 months ago (2013-04-11 00:13:42 UTC) #30
Patrick Riordan
On 2013/04/11 00:13:42, jam wrote: > On 2013/04/11 00:01:25, Patrick Riordan wrote: > > So ...
7 years, 8 months ago (2013-04-11 01:38:11 UTC) #31
Peter Kasting
After thinking more, I'm wondering why we need to even involve the toolbar model. I'm ...
7 years, 8 months ago (2013-04-11 05:44:52 UTC) #32
Patrick Riordan
On 2013/04/11 05:44:52, Peter Kasting wrote: > After thinking more, I'm wondering why we need ...
7 years, 8 months ago (2013-04-11 22:45:12 UTC) #33
Peter Kasting
https://codereview.chromium.org/12463042/diff/80001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (right): https://codereview.chromium.org/12463042/diff/80001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#newcode452 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:452: bool grey_out_url = GetText().substr(scheme.begin, scheme.len) == Use |display_text| here ...
7 years, 8 months ago (2013-04-11 23:10:40 UTC) #34
Patrick Riordan
https://codereview.chromium.org/12463042/diff/80001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm File chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm (right): https://codereview.chromium.org/12463042/diff/80001/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm#newcode452 chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm:452: bool grey_out_url = GetText().substr(scheme.begin, scheme.len) == On 2013/04/11 23:10:40, ...
7 years, 8 months ago (2013-04-11 23:27:37 UTC) #35
Peter Kasting
LGTM
7 years, 8 months ago (2013-04-12 00:07:59 UTC) #36
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 8 months ago (2013-04-13 19:40:36 UTC) #37
Peter Kasting
Wrong, commit-bot, I'm a valid committer. LGTM (again).
7 years, 8 months ago (2013-04-13 20:06:54 UTC) #38
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 8 months ago (2013-04-14 00:08:53 UTC) #39
tfarina
On Sat, Apr 13, 2013 at 9:08 PM, <commit-bot@chromium.org> wrote: > No LGTM from a ...
7 years, 8 months ago (2013-04-14 00:11:07 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/patrickriordan177@gmail.com/12463042/91001
7 years, 8 months ago (2013-04-18 23:01:14 UTC) #41
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-18 23:30:39 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/patrickriordan177@gmail.com/12463042/108002
7 years, 8 months ago (2013-04-18 23:46:22 UTC) #43
commit-bot: I haz the power
Change committed as 195131
7 years, 8 months ago (2013-04-19 09:37:50 UTC) #44
Matt Perry
7 years, 8 months ago (2013-04-19 18:46:49 UTC) #45
Message was sent while issue was closed.
Awesome! So happy to see us finally try this.

Powered by Google App Engine
This is Rietveld 408576698