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

Issue 2531133002: Convert SetIsIncognitoProcess to use mojo. (Closed)

Created:
4 years ago by nigeltao1
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert SetIsIncognitoProcess to use mojo. Also add a hook for content::RenderThreadObserver implementations, such as ChromeRenderThreadObserver, to register their Mojo interfaces. Tested manually, by creating a new Chrome extension a la https://developer.chrome.com/extensions/getstarted and replacing its popup.js script with: document.addEventListener('DOMContentLoaded', function() { document.getElementById('status').textContent = 'inIncognitoContext: ' + chrome.extension.inIncognitoContext; }); BUG=577685 Committed: https://crrev.com/7cd8d558f5731ea6da8de7334dacb5fecc04b15f Cr-Commit-Position: refs/heads/master@{#437823}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Convert SetIsIncognitoProcess to use mojo. #

Total comments: 13

Patch Set 3 : Convert SetIsIncognitoProcess to use mojo. #

Total comments: 2

Patch Set 4 : Convert SetIsIncognitoProcess to use mojo. #

Total comments: 2

Patch Set 5 : Convert SetIsIncognitoProcess to use mojo. #

Patch Set 6 : Convert SetIsIncognitoProcess to use mojo. #

Total comments: 5

Patch Set 7 : Convert SetIsIncognitoProcess to use mojo. #

Total comments: 2

Patch Set 8 : Convert SetIsIncognitoProcess to use mojo. #

Total comments: 2

Patch Set 9 : Convert SetIsIncognitoProcess to use mojo. #

Patch Set 10 : Convert SetIsIncognitoProcess to use mojo. #

Patch Set 11 : Convert SetIsIncognitoProcess to use mojo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -13 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -5 lines 0 comments Download
A chrome/common/renderer_configuration.mojom View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_thread_observer.h View 1 2 3 4 5 6 7 8 9 5 chunks +17 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_render_thread_observer.cc View 1 2 3 4 5 6 7 8 5 chunks +26 lines, -3 lines 0 comments Download
M content/public/renderer/render_thread_observer.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (32 generated)
nigeltao1
https://codereview.chromium.org/2531133002/diff/1/chrome/renderer/chrome_render_thread_observer.h File chrome/renderer/chrome_render_thread_observer.h (right): https://codereview.chromium.org/2531133002/diff/1/chrome/renderer/chrome_render_thread_observer.h#newcode38 chrome/renderer/chrome_render_thread_observer.h:38: public chrome::mojom::Renderer { Should this be NON_EXPORTED_BASE(public chrome::mojom::Renderer) I ...
4 years ago (2016-11-27 01:15:49 UTC) #4
Ken Rockot(use gerrit already)
LGTM https://codereview.chromium.org/2531133002/diff/1/chrome/renderer/chrome_render_thread_observer.h File chrome/renderer/chrome_render_thread_observer.h (right): https://codereview.chromium.org/2531133002/diff/1/chrome/renderer/chrome_render_thread_observer.h#newcode38 chrome/renderer/chrome_render_thread_observer.h:38: public chrome::mojom::Renderer { On 2016/11/27 at 01:15:49, nigeltao1 ...
4 years ago (2016-11-29 23:20:09 UTC) #7
nigeltao1
https://codereview.chromium.org/2531133002/diff/20001/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2531133002/diff/20001/chrome/renderer/chrome_render_thread_observer.cc#newcode280 chrome/renderer/chrome_render_thread_observer.cc:280: base::Unretained(this))); BTW, I am not 100% confident that this ...
4 years ago (2016-12-01 00:30:16 UTC) #8
Ken Rockot(use gerrit already)
A few extra comments upon closer inspection. https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom File chrome/common/renderer.mojom (right): https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom#newcode23 chrome/common/renderer.mojom:23: InitialConfiguration(InitialConfigurationParams params); ...
4 years ago (2016-12-01 18:46:30 UTC) #9
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom File chrome/common/renderer.mojom (right): https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom#newcode23 chrome/common/renderer.mojom:23: InitialConfiguration(InitialConfigurationParams params); On 2016/12/01 at 18:46:30, Ken Rockot wrote: ...
4 years ago (2016-12-01 18:49:46 UTC) #10
nigeltao1
https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom File chrome/common/renderer.mojom (right): https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom#newcode23 chrome/common/renderer.mojom:23: InitialConfiguration(InitialConfigurationParams params); It could be just a bool in ...
4 years ago (2016-12-01 21:57:20 UTC) #11
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom File chrome/common/renderer.mojom (right): https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom#newcode23 chrome/common/renderer.mojom:23: InitialConfiguration(InitialConfigurationParams params); On 2016/12/01 at 21:57:20, nigeltao1 wrote: > ...
4 years ago (2016-12-01 22:02:59 UTC) #12
nigeltao1
PTAL. https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom File chrome/common/renderer.mojom (right): https://codereview.chromium.org/2531133002/diff/20001/chrome/common/renderer.mojom#newcode23 chrome/common/renderer.mojom:23: InitialConfiguration(InitialConfigurationParams params); On 2016/12/01 22:02:59, Ken Rockot wrote: ...
4 years ago (2016-12-02 05:36:54 UTC) #13
Ken Rockot(use gerrit already)
Thanks! LGTM for realsies. https://codereview.chromium.org/2531133002/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2531133002/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode1094 chrome/browser/chrome_content_browser_client.cc:1094: GetGuestViewDefaultContentSettingRules(profile->IsOffTheRecord(), &rules); nit: might as ...
4 years ago (2016-12-02 05:50:41 UTC) #16
nigeltao1
https://codereview.chromium.org/2531133002/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2531133002/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode1094 chrome/browser/chrome_content_browser_client.cc:1094: GetGuestViewDefaultContentSettingRules(profile->IsOffTheRecord(), &rules); On 2016/12/02 05:50:41, Ken Rockot wrote: > ...
4 years ago (2016-12-04 01:28:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2531133002/60001
4 years ago (2016-12-04 01:28:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/318133)
4 years ago (2016-12-04 01:37:38 UTC) #24
nigeltao1
R=sky,tsepez for OWNERS.
4 years ago (2016-12-04 03:14:28 UTC) #26
sky
https://codereview.chromium.org/2531133002/diff/60001/chrome/common/renderer.mojom File chrome/common/renderer.mojom (right): https://codereview.chromium.org/2531133002/diff/60001/chrome/common/renderer.mojom#newcode10 chrome/common/renderer.mojom:10: interface Renderer { For an interface that is meant ...
4 years ago (2016-12-05 16:11:23 UTC) #27
Tom Sepez
OWNERS LGTM, but address sky's comment. Thanks.
4 years ago (2016-12-05 17:51:00 UTC) #28
nigeltao1
https://codereview.chromium.org/2531133002/diff/60001/chrome/common/renderer.mojom File chrome/common/renderer.mojom (right): https://codereview.chromium.org/2531133002/diff/60001/chrome/common/renderer.mojom#newcode10 chrome/common/renderer.mojom:10: interface Renderer { On 2016/12/05 16:11:22, sky wrote: > ...
4 years ago (2016-12-08 04:33:41 UTC) #29
Ken Rockot(use gerrit already)
On Wed, Dec 7, 2016 at 8:33 PM, <nigeltao@chromium.org> wrote: > > https://codereview.chromium.org/2531133002/diff/60001/ > chrome/common/renderer.mojom ...
4 years ago (2016-12-08 04:42:20 UTC) #30
nigeltao1
On 2016/12/08 04:42:20, Ken Rockot wrote: > Sure, it's reasonable, but I think sky's comment ...
4 years ago (2016-12-08 05:50:09 UTC) #31
nigeltao1
https://codereview.chromium.org/2531133002/diff/80002/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2531133002/diff/80002/chrome/renderer/chrome_render_thread_observer.cc#newcode315 chrome/renderer/chrome_render_thread_observer.cc:315: if (renderer_configuration_binding_.is_bound()) rockot, please take a close look at ...
4 years ago (2016-12-08 06:37:05 UTC) #32
sky
LGTM https://codereview.chromium.org/2531133002/diff/80002/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2531133002/diff/80002/chrome/renderer/chrome_render_thread_observer.cc#newcode291 chrome/renderer/chrome_render_thread_observer.cc:291: void ChromeRenderThreadObserver::OnRendererInterfaceRequest( Make declaration/definition order match. https://codereview.chromium.org/2531133002/diff/80002/chrome/renderer/chrome_render_thread_observer.cc#newcode314 chrome/renderer/chrome_render_thread_observer.cc:314: ...
4 years ago (2016-12-08 16:06:24 UTC) #37
nigeltao1
https://codereview.chromium.org/2531133002/diff/80002/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2531133002/diff/80002/chrome/renderer/chrome_render_thread_observer.cc#newcode291 chrome/renderer/chrome_render_thread_observer.cc:291: void ChromeRenderThreadObserver::OnRendererInterfaceRequest( On 2016/12/08 16:06:23, sky wrote: > Make ...
4 years ago (2016-12-08 23:59:09 UTC) #38
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2531133002/diff/110001/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2531133002/diff/110001/chrome/renderer/chrome_render_thread_observer.cc#newcode305 chrome/renderer/chrome_render_thread_observer.cc:305: // This renderer_configuration_binding_.Unbind call works around tests that ...
4 years ago (2016-12-09 04:29:08 UTC) #39
nigeltao1
https://codereview.chromium.org/2531133002/diff/110001/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2531133002/diff/110001/chrome/renderer/chrome_render_thread_observer.cc#newcode305 chrome/renderer/chrome_render_thread_observer.cc:305: // This renderer_configuration_binding_.Unbind call works around tests that On ...
4 years ago (2016-12-09 04:59:40 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2531133002/130001
4 years ago (2016-12-09 05:03:01 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/322325)
4 years ago (2016-12-09 05:12:52 UTC) #45
nigeltao1
jochen, can you review for content/OWNERS?
4 years ago (2016-12-09 05:35:30 UTC) #47
jochen (gone - plz use gerrit)
lgtm with comment addressed https://codereview.chromium.org/2531133002/diff/130001/content/public/renderer/render_thread_observer.h File content/public/renderer/render_thread_observer.h (right): https://codereview.chromium.org/2531133002/diff/130001/content/public/renderer/render_thread_observer.h#newcode10 content/public/renderer/render_thread_observer.h:10: #include "content/public/common/associated_interface_registry.h" is this needed? ...
4 years ago (2016-12-09 08:28:26 UTC) #48
nigeltao1
https://codereview.chromium.org/2531133002/diff/130001/content/public/renderer/render_thread_observer.h File content/public/renderer/render_thread_observer.h (right): https://codereview.chromium.org/2531133002/diff/130001/content/public/renderer/render_thread_observer.h#newcode10 content/public/renderer/render_thread_observer.h:10: #include "content/public/common/associated_interface_registry.h" On 2016/12/09 08:28:26, jochen wrote: > is ...
4 years ago (2016-12-09 22:37:35 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2531133002/150001
4 years ago (2016-12-09 22:43:10 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/249341)
4 years ago (2016-12-09 23:59:32 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2531133002/170001
4 years ago (2016-12-10 02:02:29 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/196464)
4 years ago (2016-12-10 03:52:57 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2531133002/190001
4 years ago (2016-12-12 04:30:58 UTC) #62
commit-bot: I haz the power
Committed patchset #11 (id:190001)
4 years ago (2016-12-12 06:06:41 UTC) #65
commit-bot: I haz the power
4 years ago (2016-12-12 15:10:43 UTC) #67
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/7cd8d558f5731ea6da8de7334dacb5fecc04b15f
Cr-Commit-Position: refs/heads/master@{#437823}

Powered by Google App Engine
This is Rietveld 408576698