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

Issue 136693011: Disable incognito if parental controls are enabled on android. (Closed)

Created:
6 years, 11 months ago by Ted C
Modified:
6 years, 11 months ago
Reviewers:
Bernhard Bauer, Yaron
CC:
chromium-reviews
Visibility:
Public.

Description

Disable incognito if parental controls are enabled on android. Provides a hook to the Android application to specify whether parental controls are enabled and incognito should be disabled. TEST=build/android/test_runner.py gtest -s unit_tests BUG=329276 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245390

Patch Set 1 #

Total comments: 6

Patch Set 2 : Split out platform function #

Patch Set 3 : Update ifdef comments #

Patch Set 4 : Fixed unit tests #

Patch Set 5 : Move around test AndroidManifest.xml #

Total comments: 3

Patch Set 6 : Move to unit_tests instead of native_tets #

Patch Set 7 : Keep native_test as the package to be compliant w/ testing framework #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -42 lines) Patch
M build/apk_test.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellApplication.java View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/chromium_application.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/chromium_application.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.cc View 1 2 3 chunks +17 lines, -5 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
A + chrome/test/android/unit_tests_apk/AndroidManifest.xml View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
A chrome/test/android/unit_tests_apk/src/org/chromium/chrome/unit_tests_apk/ChromeNativeTestApplication.java View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
D testing/android/AndroidManifest.xml View 1 2 3 4 1 chunk +0 lines, -34 lines 0 comments Download
A + testing/android/java/AndroidManifest.xml View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Ted C
PTAL, probably worth both of you looking over all the files as they are minimal ...
6 years, 11 months ago (2014-01-14 02:55:19 UTC) #1
Yaron
On 2014/01/14 02:55:19, Ted C wrote: > PTAL, probably worth both of you looking over ...
6 years, 11 months ago (2014-01-14 03:14:42 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/136693011/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/136693011/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode17 chrome/browser/prefs/incognito_mode_prefs.cc:17: #elif defined(OS_ANDROID) Nit: I'd rather keep these #ifdefs separate ...
6 years, 11 months ago (2014-01-14 09:59:07 UTC) #3
Ted C
https://codereview.chromium.org/136693011/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/136693011/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode43 chrome/browser/prefs/incognito_mode_prefs.cc:43: if (base::win::IsParentalControlActivityLoggingOn()) { On 2014/01/14 09:59:07, Bernhard Bauer wrote: ...
6 years, 11 months ago (2014-01-14 20:22:58 UTC) #4
Bernhard Bauer
LGTM with the comment below. https://codereview.chromium.org/136693011/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/136693011/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode43 chrome/browser/prefs/incognito_mode_prefs.cc:43: if (base::win::IsParentalControlActivityLoggingOn()) { On ...
6 years, 11 months ago (2014-01-14 23:26:26 UTC) #5
Ted C
https://codereview.chromium.org/136693011/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): https://codereview.chromium.org/136693011/diff/1/chrome/browser/prefs/incognito_mode_prefs.cc#newcode17 chrome/browser/prefs/incognito_mode_prefs.cc:17: #elif defined(OS_ANDROID) On 2014/01/14 09:59:07, Bernhard Bauer wrote: > ...
6 years, 11 months ago (2014-01-15 00:15:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedchoc@chromium.org/136693011/120001
6 years, 11 months ago (2014-01-15 17:40:31 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=246660
6 years, 11 months ago (2014-01-15 19:32:43 UTC) #8
Ted C
On 2014/01/15 19:32:43, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 11 months ago (2014-01-16 04:26:18 UTC) #9
Yaron
https://codereview.chromium.org/136693011/diff/400001/build/apk_test.gypi File build/apk_test.gypi (left): https://codereview.chromium.org/136693011/diff/400001/build/apk_test.gypi#oldcode34 build/apk_test.gypi:34: 'android_manifest_path': '<(DEPTH)/testing/android/AndroidManifest.xml', I'm not sure how this works. I ...
6 years, 11 months ago (2014-01-16 18:38:19 UTC) #10
Yaron
lgtm Thanks for clarification off-thread. I missed the new AndroidManifest.xml. Feel free to ignore nit ...
6 years, 11 months ago (2014-01-16 18:47:22 UTC) #11
Ted C
https://codereview.chromium.org/136693011/diff/400001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/136693011/diff/400001/chrome/chrome_tests_unit.gypi#newcode2804 chrome/chrome_tests_unit.gypi:2804: 'java_in_dir': 'test/android/native_test_apk', On 2014/01/16 18:47:23, Yaron wrote: > nit: ...
6 years, 11 months ago (2014-01-16 19:22:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedchoc@chromium.org/136693011/580001
6 years, 11 months ago (2014-01-16 19:27:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedchoc@chromium.org/136693011/840001
6 years, 11 months ago (2014-01-16 21:57:54 UTC) #14
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 00:18:15 UTC) #15
Message was sent while issue was closed.
Change committed as 245390

Powered by Google App Engine
This is Rietveld 408576698