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

Issue 1435263003: [Android] Show document mode opt-out InfoBar on selected devices. (Closed)

Created:
5 years, 1 month ago by Kibeom Kim (inactive)
Modified:
4 years, 11 months ago
Reviewers:
Ted C, rkaplow, gone
CC:
asvitkine+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Show document mode opt-out InfoBar on selected devices. There are many Android devices that doesn't have a tab switcher button or have it but inconvinient to use. We already make tabbed mode default for those devices. This CL adds a document mode opt-out promotion InfoBar for the existing users on those devices. BUG=546601

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : show infobar also on native pages and fixed showing conditions #

Total comments: 6

Patch Set 4 : native infobar and many other updates #

Total comments: 2

Patch Set 5 : removed isOptedInToDocumentMode #

Total comments: 27

Patch Set 6 : addressed Dan's comments #

Total comments: 4

Patch Set 7 : addressed comments, renaming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -85 lines) Patch
A chrome/android/java/res/drawable-hdpi/infobar_document_mode_opt_out.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/infobar_document_mode_opt_out.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/infobar_document_mode_opt_out.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/infobar_document_mode_opt_out.png View 1 2 3 4 5 6 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/infobar_document_mode_opt_out.png View 1 2 3 4 5 6 Binary file 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 4 5 6 5 chunks +15 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMigrationHelper.java View 1 2 3 4 5 3 chunks +9 lines, -2 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/infobar/DocumentModeOptOutInfoBarDelegate.java View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/DocumentModePreference.java View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/browser/ui/android/infobars/document_mode_opt_out_infobar_delegate.h View 1 2 3 4 5 6 1 chunk +21 lines, -19 lines 0 comments Download
A + chrome/browser/ui/android/infobars/document_mode_opt_out_infobar_delegate.cc View 1 2 3 4 5 6 1 chunk +65 lines, -56 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (6 generated)
Kibeom Kim (inactive)
ptal. The only remaining part is showing infobar on a native tab page, and will ...
5 years, 1 month ago (2015-11-12 19:22:38 UTC) #2
Kibeom Kim (inactive)
+newt@ for native page infobar
5 years, 1 month ago (2015-11-12 21:21:20 UTC) #4
gone
initial comment before I move onto the CL: Follow the naming scheme for the other ...
5 years, 1 month ago (2015-11-12 21:34:22 UTC) #5
gone
not lgtm I mentioned in chat the other day to not add a Java-only InfoBar, ...
5 years, 1 month ago (2015-11-12 21:41:33 UTC) #6
Kibeom Kim (inactive)
Oh sorry, I naively thought it's OK after finding OmahaUpdateInfobar, I'll make the native-side counterparts.
5 years, 1 month ago (2015-11-12 22:10:47 UTC) #7
gone
Yeah, I thought explicitly mentioned not to follow that case.
5 years, 1 month ago (2015-11-12 22:11:40 UTC) #8
Kibeom Kim (inactive)
ptal https://codereview.chromium.org/1435263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/1435263003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode1256 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:1256: mInfoBarContainer.onParentViewChanged(getId(), mContentViewParent); On 2015/11/12 21:41:33, dfalcantara wrote: > ...
5 years, 1 month ago (2015-11-17 11:49:49 UTC) #10
Kibeom Kim (inactive)
https://codereview.chromium.org/1435263003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java (right): https://codereview.chromium.org/1435263003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java#newcode47 chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java:47: .equals("enabled")) { I've found bugs in this condition. Fixing...
5 years, 1 month ago (2015-11-17 19:44:24 UTC) #11
Kibeom Kim (inactive)
https://codereview.chromium.org/1435263003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java (right): https://codereview.chromium.org/1435263003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java#newcode47 chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java:47: .equals("enabled")) { On 2015/11/17 19:44:24, Kibeom Kim wrote: > ...
5 years, 1 month ago (2015-11-17 22:18:13 UTC) #12
gone
https://codereview.chromium.org/1435263003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/1435263003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode193 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:193: private boolean mIsShowingTabbedModeOptInInfoBarAttempted = false; don't bother initializing to ...
5 years, 1 month ago (2015-11-17 23:18:17 UTC) #13
gone
Another general question: why is this a "tabbed mode opt-in" instead of a "document mode ...
5 years, 1 month ago (2015-11-17 23:20:07 UTC) #14
Kibeom Kim (inactive)
For opt-in and opt-out, I think both are right and doesn't really matter. Initially I ...
5 years, 1 month ago (2015-11-20 11:44:15 UTC) #15
gone
That's the point -- document mode users were opted INto that by default. This InfoBar ...
5 years, 1 month ago (2015-11-20 18:30:56 UTC) #16
gone
https://chromiumcodereview.appspot.com/1435263003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java (right): https://chromiumcodereview.appspot.com/1435263003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java#newcode29 chrome/android/java/src/org/chromium/chrome/browser/infobar/TabbedModeOptInInfoBarDelegate.java:29: private Activity mActivity; On 2015/11/20 11:44:14, Kibeom Kim wrote: ...
5 years, 1 month ago (2015-11-20 19:26:14 UTC) #17
Kibeom Kim (inactive)
https://codereview.chromium.org/1435263003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/1435263003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode193 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:193: private boolean mIsShowingTabbedModeOptInInfoBarAttempted; On 2015/11/20 19:26:14, dfalcantara wrote: > ...
5 years, 1 month ago (2015-11-20 23:13:14 UTC) #18
Kibeom Kim (inactive)
ptal
5 years ago (2015-12-09 01:55:07 UTC) #21
Kibeom Kim (inactive)
5 years ago (2015-12-09 02:05:20 UTC) #22
On 2015/12/09 01:55:07, Kibeom Kim (OOO till 2016) wrote:
> ptal

Canceling ptal. We're reconsidering this feature. I'll close or ping again once
it's decided.

Powered by Google App Engine
This is Rietveld 408576698