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

Issue 10827146: crbug.com/127841 - Request Tablet Site on CB with touch screen. (Closed)

Created:
8 years, 4 months ago by sschmitz
Modified:
8 years, 3 months ago
Reviewers:
jamesr, Charlie Reis, gone, Jói, sky
CC:
chromium-reviews, darin-cc_chromium.org, Emmanuel Saint-loubert-Bié, Rick Byers
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

crbug.com/127841 - Request Tablet Site on CB with touch screen. Allow user to request tablet site via a toggle on the wrench menu. Under about-flag & cmd line switch: --enable-request-tablet-site BUG=127841 TEST=Run with flag; URLs to try: whatsmyuseragent.com, whatsmyua.com, slashdot.org, www.espn.com, www,facebook.com, www.google.com toggle "Request tablet site" under wrench menu Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155872

Patch Set 1 #

Patch Set 2 : removed spurious whitespace differences wrt master #

Total comments: 19

Patch Set 3 : set UA override for all entries; impl. reviewer comments #

Total comments: 12

Patch Set 4 : Disable RTS control when no tab or no nav. entry; impl. reviewer comments #

Total comments: 10

Patch Set 5 : impl. review comments #

Total comments: 4

Patch Set 6 : Changed to #

Patch Set 7 : Rebase #

Total comments: 8

Patch Set 8 : use ReloadOriginalRequestURL instead of Reload; impl. review comments from sky #

Total comments: 8

Patch Set 9 : rebase and cleanup #

Patch Set 10 : removed spurious comment #

Patch Set 11 : include touch factory header only for chrome os #

Patch Set 12 : removed spurious newline #

Total comments: 10

Patch Set 13 : fix for Dan's comments #

Total comments: 15

Patch Set 14 : fixed review items by sky@ #

Patch Set 15 : removed unused flag (2nd rts flag) #

Total comments: 6

Patch Set 16 : fixed review issues #

Total comments: 2

Patch Set 17 : fix review issues by jamesr@ #

Patch Set 18 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -5 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -5 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
sschmitz
Dan and Rick, thanks much for your help so far. Would you please do a ...
8 years, 4 months ago (2012-08-02 23:41:29 UTC) #1
gone
Thanks! I took a cursory pass at your CL. I'm kind of curious to see ...
8 years, 4 months ago (2012-08-03 00:08:26 UTC) #2
sschmitz
Made changes according to Dan's review. I see some issues. Not sure what to do ...
8 years, 4 months ago (2012-08-03 15:36:57 UTC) #3
Rick Byers
http://codereview.chromium.org/10827146/diff/2001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10827146/diff/2001/chrome/app/generated_resources.grd#newcode1326 chrome/app/generated_resources.grd:1326: + <message name="IDS_TOGGLE_REQUEST_TABLET_SITE" desc="The toggle to request tablet site ...
8 years, 4 months ago (2012-08-03 15:53:06 UTC) #4
sschmitz
Update wrt Rick's comments. Thanks much. http://codereview.chromium.org/10827146/diff/2001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10827146/diff/2001/chrome/app/generated_resources.grd#newcode1326 chrome/app/generated_resources.grd:1326: + <message name="IDS_TOGGLE_REQUEST_TABLET_SITE" ...
8 years, 4 months ago (2012-08-03 18:11:42 UTC) #5
gone
https://chromiumcodereview.appspot.com/10827146/diff/12002/chrome/browser/ui/browser_commands.cc File chrome/browser/ui/browser_commands.cc (right): https://chromiumcodereview.appspot.com/10827146/diff/12002/chrome/browser/ui/browser_commands.cc#newcode873 chrome/browser/ui/browser_commands.cc:873: return; // The control is disabled in this case ...
8 years, 4 months ago (2012-08-03 20:13:26 UTC) #6
sschmitz
update based on Dan's review. Thanks much. http://codereview.chromium.org/10827146/diff/12002/chrome/browser/ui/browser_commands.cc File chrome/browser/ui/browser_commands.cc (right): http://codereview.chromium.org/10827146/diff/12002/chrome/browser/ui/browser_commands.cc#newcode873 chrome/browser/ui/browser_commands.cc:873: return; // ...
8 years, 4 months ago (2012-08-03 21:20:51 UTC) #7
gone
> 1. www.facebook.com correctly switches to tablet but does not switch back (on toggling back ...
8 years, 4 months ago (2012-08-03 21:53:05 UTC) #8
sschmitz
On 2012/08/03 21:53:05, dfalcantara wrote: > > 1. http://www.facebook.com correctly switches to tablet but does ...
8 years, 4 months ago (2012-08-03 23:20:14 UTC) #9
sschmitz
impl. review comments; back to "RTS Flag is Per Entry", not the whole Tab history; ...
8 years, 4 months ago (2012-08-03 23:25:26 UTC) #10
sky
https://chromiumcodereview.appspot.com/10827146/diff/10018/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://chromiumcodereview.appspot.com/10827146/diff/10018/chrome/browser/ui/browser_command_controller.cc#newcode750 chrome/browser/ui/browser_command_controller.cc:750: command_updater_.UpdateCommandEnabled(IDC_TOGGLE_REQUEST_TABLET_SITE, true); This shouldn't be grouped with 'show various ...
8 years, 4 months ago (2012-08-06 21:41:06 UTC) #11
sky
Also note that I'm not an OWNER of webkit, so make sure you have a ...
8 years, 4 months ago (2012-08-06 21:47:08 UTC) #12
sschmitz
-updated based on review by sky@ -added creis@ for review of making ReloadOriginalRequestURL accessible (navigation_controller, ...
8 years, 4 months ago (2012-08-07 02:19:49 UTC) #13
jamesr
Why does this feature require patching webkit/glue/user_agent.h/cc, but not the "Request desktop site" feature from ...
8 years, 4 months ago (2012-08-07 02:23:55 UTC) #14
gone
On 2012/08/07 02:23:55, jamesr wrote: > Why does this feature require patching webkit/glue/user_agent.h/cc, but not ...
8 years, 4 months ago (2012-08-07 03:42:02 UTC) #15
jamesr
On 2012/08/07 03:42:02, dfalcantara wrote: > On 2012/08/07 02:23:55, jamesr wrote: > > Why does ...
8 years, 4 months ago (2012-08-07 04:35:02 UTC) #16
gone
On 2012/08/07 04:35:02, jamesr wrote: > On 2012/08/07 03:42:02, dfalcantara wrote: > > On 2012/08/07 ...
8 years, 4 months ago (2012-08-07 18:09:34 UTC) #17
jamesr
http://codereview.chromium.org/10827146/diff/5015/webkit/glue/user_agent.cc File webkit/glue/user_agent.cc (right): http://codereview.chromium.org/10827146/diff/5015/webkit/glue/user_agent.cc#newcode183 webkit/glue/user_agent.cc:183: size_t p1 = user_agent.find("("); This seems pretty gross. If ...
8 years, 4 months ago (2012-08-07 19:49:02 UTC) #18
Charlie Reis
I'm ok with making ReloadOriginalRequestURL public, but I agree with James about wishing this shared ...
8 years, 4 months ago (2012-08-13 20:38:46 UTC) #19
Rick Byers
On 2012/08/13 20:38:46, creis wrote: > I'm ok with making ReloadOriginalRequestURL public, but I agree ...
8 years, 4 months ago (2012-08-13 20:42:09 UTC) #20
gone
http://codereview.chromium.org/10827146/diff/5015/webkit/glue/user_agent.cc File webkit/glue/user_agent.cc (right): http://codereview.chromium.org/10827146/diff/5015/webkit/glue/user_agent.cc#newcode33 webkit/glue/user_agent.cc:33: "(Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B)"; On 2012/08/13 20:38:46, ...
8 years, 4 months ago (2012-08-13 20:45:12 UTC) #21
gone
https://chromiumcodereview.appspot.com/10827146/diff/5015/webkit/glue/user_agent.cc File webkit/glue/user_agent.cc (right): https://chromiumcodereview.appspot.com/10827146/diff/5015/webkit/glue/user_agent.cc#newcode33 webkit/glue/user_agent.cc:33: "(Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B)"; Though there is ...
8 years, 4 months ago (2012-08-14 01:15:16 UTC) #22
gone
On 2012/08/14 01:15:16, dfalcantara wrote: > https://chromiumcodereview.appspot.com/10827146/diff/5015/webkit/glue/user_agent.cc > File webkit/glue/user_agent.cc (right): > > https://chromiumcodereview.appspot.com/10827146/diff/5015/webkit/glue/user_agent.cc#newcode33 > ...
8 years, 4 months ago (2012-08-14 01:33:24 UTC) #23
sschmitz
Incorporated dfalcantara@'s work to clean-up setting the spoofed user agent string. The only real changes ...
8 years, 3 months ago (2012-09-06 16:44:01 UTC) #24
gone
https://chromiumcodereview.appspot.com/10827146/diff/23002/chrome/browser/ui/browser_commands.cc File chrome/browser/ui/browser_commands.cc (right): https://chromiumcodereview.appspot.com/10827146/diff/23002/chrome/browser/ui/browser_commands.cc#newcode898 chrome/browser/ui/browser_commands.cc:898: return !!current_tab->GetController().GetActiveEntry(); Is this supposed to be a double ...
8 years, 3 months ago (2012-09-06 18:08:32 UTC) #25
sschmitz
Fixes for Dan's latest review. (Thanks Dan... also for your other help) http://codereview.chromium.org/10827146/diff/23002/chrome/browser/ui/browser_commands.cc File chrome/browser/ui/browser_commands.cc ...
8 years, 3 months ago (2012-09-06 18:52:45 UTC) #26
sky
http://codereview.chromium.org/10827146/diff/25006/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): http://codereview.chromium.org/10827146/diff/25006/chrome/browser/ui/browser_command_controller.cc#newcode768 chrome/browser/ui/browser_command_controller.cc:768: command_updater_.UpdateCommandEnabled(IDC_TOGGLE_REQUEST_TABLET_SITE, true); You have this set in UpdateCommandsForTabState, why ...
8 years, 3 months ago (2012-09-07 18:05:29 UTC) #27
sschmitz
fixes based on review by sky@ (thanks!) Patch 13 has a few rebasing changes http://codereview.chromium.org/10827146/diff/25006/chrome/browser/ui/browser_command_controller.cc ...
8 years, 3 months ago (2012-09-07 22:33:09 UTC) #28
sky
http://codereview.chromium.org/10827146/diff/25006/content/browser/web_contents/navigation_controller_impl.h File content/browser/web_contents/navigation_controller_impl.h (right): http://codereview.chromium.org/10827146/diff/25006/content/browser/web_contents/navigation_controller_impl.h#newcode81 content/browser/web_contents/navigation_controller_impl.h:81: virtual void ReloadOriginalRequestURL(bool check_for_repost) OVERRIDE; On 2012/09/07 22:33:09, sschmitz ...
8 years, 3 months ago (2012-09-07 22:54:16 UTC) #29
sschmitz
On Fri, Sep 7, 2012 at 3:54 PM, <sky@chromium.org> wrote: > > http://codereview.chromium.**org/10827146/diff/25006/** > content/browser/web_contents/**navigation_controller_impl.h<http://codereview.chromium.org/10827146/diff/25006/content/browser/web_contents/navigation_controller_impl.h> ...
8 years, 3 months ago (2012-09-07 23:34:06 UTC) #30
sschmitz
http://codereview.chromium.org/10827146/diff/26007/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10827146/diff/26007/chrome/app/generated_resources.grd#newcode1306 chrome/app/generated_resources.grd:1306: + <message name="IDS_TOGGLE_REQUEST_TABLET_SITE" desc="The toggle to request tablet site ...
8 years, 3 months ago (2012-09-07 23:39:10 UTC) #31
sky
LGTM
8 years, 3 months ago (2012-09-07 23:46:32 UTC) #32
jamesr
http://codereview.chromium.org/10827146/diff/19006/webkit/glue/user_agent.h File webkit/glue/user_agent.h (right): http://codereview.chromium.org/10827146/diff/19006/webkit/glue/user_agent.h#newcode33 webkit/glue/user_agent.h:33: std::string BuildUserAgentOverrideForTabletSiteFromProduct( I don't think you really want a ...
8 years, 3 months ago (2012-09-07 23:58:30 UTC) #33
sschmitz
Thanks James. I made the change. webkit/gue/user_agent.h&cc are not used from master.... thanks to Dan's ...
8 years, 3 months ago (2012-09-08 00:40:39 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/10827146/23025
8 years, 3 months ago (2012-09-10 14:34:10 UTC) #35
commit-bot: I haz the power
Presubmit check for 10827146-23025 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-10 14:34:16 UTC) #36
sschmitz
On 2012/09/10 14:34:16, I haz the power (commit-bot) wrote: > Presubmit check for 10827146-23025 failed ...
8 years, 3 months ago (2012-09-10 14:44:34 UTC) #37
sschmitz
Added joi@ as owner of content/public for content/public/browser/navigation_controller.h (Making a mem fct public)
8 years, 3 months ago (2012-09-10 14:47:02 UTC) #38
Jói
LGTM for content/public.
8 years, 3 months ago (2012-09-10 19:09:19 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/10827146/23025
8 years, 3 months ago (2012-09-10 19:36:50 UTC) #40
commit-bot: I haz the power
Try job failure for 10827146-23025 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 3 months ago (2012-09-10 19:57:53 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/10827146/26015
8 years, 3 months ago (2012-09-10 21:39:18 UTC) #42
commit-bot: I haz the power
8 years, 3 months ago (2012-09-10 23:46:38 UTC) #43
Change committed as 155872

Powered by Google App Engine
This is Rietveld 408576698