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

Issue 10808052: Tidy up Android's is-tablet functionality. (Closed)

Created:
8 years, 5 months ago by benm (inactive)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Tidy up Android's is-tablet functionality. Remove the code in sync/ that checks if the device is a tablet and perform the check in the chrome/ layer based upon a command line switch. Additionally, rather than looking for a tablet when (not) setting the Mobile specific user agent, look for --use-mobile-user-agent. The embedder should set these command line switches as appropriate, so remove the code that used to set them in the generic process startup. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148091

Patch Set 1 #

Total comments: 2

Patch Set 2 : TabletUi -> TabletUI #

Total comments: 2

Patch Set 3 : Move TABLET_UI from content/ #

Patch Set 4 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -23 lines) Patch
M chrome/browser/android/chrome_startup_flags.cc View 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache_android.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/web_resource/notification_promo.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 1 chunk +1 line, -1 line 2 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/common/CommandLine.java View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M sync/util/session_utils_android.h View 1 chunk +0 lines, -3 lines 0 comments Download
M sync/util/session_utils_android.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
benm (inactive)
ptal!
8 years, 5 months ago (2012-07-20 15:52:10 UTC) #1
Yaron
lgtm
8 years, 5 months ago (2012-07-20 16:50:48 UTC) #2
sky
https://chromiumcodereview.appspot.com/10808052/diff/1/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): https://chromiumcodereview.appspot.com/10808052/diff/1/chrome/browser/sync/glue/session_model_associator.cc#newcode72 chrome/browser/sync/glue/session_model_associator.cc:72: bool IsTabletUi() { I've never seen Ui capitalized like ...
8 years, 5 months ago (2012-07-20 16:58:09 UTC) #3
benm (inactive)
https://chromiumcodereview.appspot.com/10808052/diff/1/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): https://chromiumcodereview.appspot.com/10808052/diff/1/chrome/browser/sync/glue/session_model_associator.cc#newcode72 chrome/browser/sync/glue/session_model_associator.cc:72: bool IsTabletUi() { On 2012/07/20 16:58:09, sky wrote: > ...
8 years, 5 months ago (2012-07-23 09:17:04 UTC) #4
jochen (gone - plz use gerrit)
http://codereview.chromium.org/10808052/diff/5003/content/public/common/content_switches.h File content/public/common/content_switches.h (right): http://codereview.chromium.org/10808052/diff/5003/content/public/common/content_switches.h#newcode202 content/public/common/content_switches.h:202: extern const char kUseMobileUserAgent[]; why is this switch defined ...
8 years, 5 months ago (2012-07-23 15:08:19 UTC) #5
benm (inactive)
http://codereview.chromium.org/10808052/diff/5003/content/public/common/content_switches.h File content/public/common/content_switches.h (right): http://codereview.chromium.org/10808052/diff/5003/content/public/common/content_switches.h#newcode202 content/public/common/content_switches.h:202: extern const char kUseMobileUserAgent[]; Oh, good spot. My intent ...
8 years, 5 months ago (2012-07-23 15:20:41 UTC) #6
benm (inactive)
Note that the new place where the java TABLET_UI switch is defined is not upstream ...
8 years, 5 months ago (2012-07-23 15:58:42 UTC) #7
sky
LGTM
8 years, 5 months ago (2012-07-23 16:22:46 UTC) #8
benm (inactive)
+akalin for sync changes.
8 years, 5 months ago (2012-07-23 16:24:58 UTC) #9
jam
lgtm
8 years, 5 months ago (2012-07-23 22:54:16 UTC) #10
akalin
lgtm
8 years, 5 months ago (2012-07-24 04:38:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/10808052/4004
8 years, 5 months ago (2012-07-24 09:06:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/10808052/3005
8 years, 5 months ago (2012-07-24 10:18:21 UTC) #13
commit-bot: I haz the power
Change committed as 148091
8 years, 5 months ago (2012-07-24 11:45:51 UTC) #14
gone
Please fix this and land it when you can. https://chromiumcodereview.appspot.com/10808052/diff/3005/chrome/common/chrome_content_client.cc File chrome/common/chrome_content_client.cc (right): https://chromiumcodereview.appspot.com/10808052/diff/3005/chrome/common/chrome_content_client.cc#newcode441 chrome/common/chrome_content_client.cc:441: ...
8 years, 5 months ago (2012-07-25 18:56:09 UTC) #15
benm (inactive)
http://codereview.chromium.org/10808052/diff/3005/chrome/common/chrome_content_client.cc File chrome/common/chrome_content_client.cc (right): http://codereview.chromium.org/10808052/diff/3005/chrome/common/chrome_content_client.cc#newcode441 chrome/common/chrome_content_client.cc:441: if (!command_line->HasSwitch(switches::kUseMobileUserAgent)) { ah shoot! Thanks for spotting, sorry ...
8 years, 5 months ago (2012-07-26 09:43:36 UTC) #16
benm (inactive)
8 years, 5 months ago (2012-07-26 10:47:26 UTC) #17

Powered by Google App Engine
This is Rietveld 408576698