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

Issue 14039004: Add int params to URLDataSource::StartDataRequest(). (Closed)

Created:
7 years, 8 months ago by Jered
Modified:
7 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, nkostylev+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, gideonwald, stevenjb+watch_chromium.org, joi+watch-content_chromium.org, melevin, vsevik, dominich, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_chromium.org, dbeam+watch-ntp_chromium.org, oshima+watch_chromium.org, kmadhusu+watch_chromium.org, sreeram, yurys, Aaron Boodman, David Black, samarth+watch_chromium.org, estade+watch_chromium.org, pfeldman, samarth, palmer
Visibility:
Public.

Description

Change signature of URLDataSource::StartDataRequest(). Previously StartDataRequest() included a bool is_incognito argument for a few data sources which needed to know that. In CL/13375003, this method also needs to know the requesting render process id and render view id. Since we can determine is_incognito from the process id, pass the ints down instead of the bools. This change populates the new params and updates all the affected callsites, but does not include any other logic from 13375003. BUG=223608 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195932

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changing struct -> ints. #

Total comments: 10

Patch Set 3 : Addressing comments. #

Patch Set 4 : Rebase. #

Patch Set 5 : Updating browsertest. #

Patch Set 6 : Updating unit tests. #

Patch Set 7 : Fixing null render_host on close. #

Patch Set 8 : Always call callback. #

Patch Set 9 : Moving NULL check to URLDataManagerBackend. #

Patch Set 10 : Rebase. #

Total comments: 2

Patch Set 11 : Cleaning up NULL check. #

Patch Set 12 : It's not called a renderder. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -65 lines) Patch
M chrome/browser/printing/cloud_print/cloud_print_setup_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_setup_source.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/search/local_ntp_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/search/local_ntp_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/about_ui.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/app_launcher_page_ui.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/app_launcher_page_ui.cc View 1 2 3 7 8 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/bookmarks_ui.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/bookmarks_ui.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/system_info_ui.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/devtools_ui.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/favicon_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/fileicon_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/fileicon_source.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/fileicon_source_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/thumbnail_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/thumbnail_source.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/user_image_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/user_image_source.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/screenshot_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/screenshot_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/theme_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/theme_source.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/theme_source_unittest.cc View 1 2 3 4 5 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/test/base/web_ui_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/webui/shared_resources_data_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/webui/shared_resources_data_source.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/webui/url_data_manager_backend.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/webui/url_data_manager_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +24 lines, -6 lines 0 comments Download
M content/browser/webui/web_ui_data_source_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/webui/web_ui_data_source_impl.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/webui/web_ui_data_source_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/url_data_source.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
Jered
jam -> content api change others -> OWNERS stamp
7 years, 8 months ago (2013-04-16 22:37:47 UTC) #1
jam
https://codereview.chromium.org/14039004/diff/1/content/public/browser/url_data_source.h File content/public/browser/url_data_source.h (right): https://codereview.chromium.org/14039004/diff/1/content/public/browser/url_data_source.h#newcode58 content/public/browser/url_data_source.h:58: const ExtraRequestInfo& info, Per the conventions for the Content ...
7 years, 8 months ago (2013-04-16 23:15:30 UTC) #2
Jered
quick question https://codereview.chromium.org/14039004/diff/1/content/public/browser/url_data_source.h File content/public/browser/url_data_source.h (right): https://codereview.chromium.org/14039004/diff/1/content/public/browser/url_data_source.h#newcode58 content/public/browser/url_data_source.h:58: const ExtraRequestInfo& info, On 2013/04/16 23:15:30, jam ...
7 years, 8 months ago (2013-04-16 23:48:15 UTC) #3
Jered
PS2 has the int version. dhollowa/estade, note that ThemeSource no longer DCHECKs about is_incognito. But ...
7 years, 8 months ago (2013-04-17 00:19:34 UTC) #4
jam
re the DCHECK, agreed better to take it out given that it wouldn't be convenient ...
7 years, 8 months ago (2013-04-17 00:45:08 UTC) #5
Jered
https://codereview.chromium.org/14039004/diff/6001/chrome/browser/ui/webui/app_launcher_page_ui.cc File chrome/browser/ui/webui/app_launcher_page_ui.cc (right): https://codereview.chromium.org/14039004/diff/6001/chrome/browser/ui/webui/app_launcher_page_ui.cc#newcode108 chrome/browser/ui/webui/app_launcher_page_ui.cc:108: DCHECK(render_host != NULL); On 2013/04/17 00:45:09, jam wrote: > ...
7 years, 8 months ago (2013-04-17 01:03:07 UTC) #6
Jói
Removing myself as reviewer; jam@ is already reviewing and can approve for content/public. Cheers, Jói
7 years, 8 months ago (2013-04-17 09:31:32 UTC) #7
jam
lgtm
7 years, 8 months ago (2013-04-17 16:28:17 UTC) #8
dhollowa
LGTM. Please update descriptions of this CL though (no POD anymore) and include BUG=223608.
7 years, 8 months ago (2013-04-17 22:32:36 UTC) #9
Jered
ping estade/gene? On 2013/04/17 22:32:36, dhollowa wrote: > LGTM. Please update descriptions of this CL ...
7 years, 8 months ago (2013-04-17 23:27:08 UTC) #10
gene
lgtm for cloudprint On 2013/04/17 23:27:08, Jered wrote: > ping estade/gene? > > On 2013/04/17 ...
7 years, 8 months ago (2013-04-17 23:30:36 UTC) #11
Jered
Thanks gene. Evan can you do this quick webui review or should I ping a ...
7 years, 8 months ago (2013-04-18 15:43:07 UTC) #12
Paweł Hajdan Jr.
chrome/test/base LGTM
7 years, 8 months ago (2013-04-18 17:42:23 UTC) #13
Evan Stade
lgtm
7 years, 8 months ago (2013-04-18 18:51:28 UTC) #14
Jered
On 2013/04/18 18:51:28, Evan Stade wrote: > lgtm Thanks.
7 years, 8 months ago (2013-04-18 18:53:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jered@chromium.org/14039004/30001
7 years, 8 months ago (2013-04-18 18:55:43 UTC) #16
Jered
jam are you ok with a null check in PS7? browsertest found that the renderhost ...
7 years, 8 months ago (2013-04-18 21:04:10 UTC) #17
jam
On 2013/04/18 21:04:10, Jered wrote: > jam are you ok with a null check in ...
7 years, 8 months ago (2013-04-19 00:34:45 UTC) #18
jam
btw another question is what happens if the callback isn't called? i.e. will memory be ...
7 years, 8 months ago (2013-04-19 00:35:22 UTC) #19
Jered
On 2013/04/19 00:35:22, jam wrote: > btw another question is what happens if the callback ...
7 years, 8 months ago (2013-04-19 02:14:09 UTC) #20
Jered
On 2013/04/19 00:34:45, jam wrote: > On 2013/04/18 21:04:10, Jered wrote: > > jam are ...
7 years, 8 months ago (2013-04-19 04:33:05 UTC) #21
jam
On 2013/04/19 04:33:05, Jered wrote: > On 2013/04/19 00:34:45, jam wrote: > > On 2013/04/18 ...
7 years, 8 months ago (2013-04-19 18:33:49 UTC) #22
Jered
On 2013/04/19 18:33:49, jam wrote: > On 2013/04/19 04:33:05, Jered wrote: > > On 2013/04/19 ...
7 years, 8 months ago (2013-04-19 18:39:03 UTC) #23
jam
On 2013/04/19 18:39:03, Jered wrote: > How about we look up the RPH and do ...
7 years, 8 months ago (2013-04-19 21:26:17 UTC) #24
Jered
On 2013/04/19 21:26:17, jam wrote: > On 2013/04/19 18:39:03, Jered wrote: > > How about ...
7 years, 8 months ago (2013-04-19 22:14:17 UTC) #25
Jered
jam does PS10 resolve this for you? On 2013/04/19 22:14:17, Jered wrote: > On 2013/04/19 ...
7 years, 8 months ago (2013-04-22 15:48:40 UTC) #26
jam
lgtm with comment https://codereview.chromium.org/14039004/diff/13002/content/browser/webui/url_data_manager_backend.cc File content/browser/webui/url_data_manager_backend.cc (right): https://codereview.chromium.org/14039004/diff/13002/content/browser/webui/url_data_manager_backend.cc#newcode561 content/browser/webui/url_data_manager_backend.cc:561: if (content::RenderProcessHost::FromID(render_process_id) == NULL) { this ...
7 years, 8 months ago (2013-04-22 18:17:09 UTC) #27
Jered
Thanks. https://codereview.chromium.org/14039004/diff/13002/content/browser/webui/url_data_manager_backend.cc File content/browser/webui/url_data_manager_backend.cc (right): https://codereview.chromium.org/14039004/diff/13002/content/browser/webui/url_data_manager_backend.cc#newcode561 content/browser/webui/url_data_manager_backend.cc:561: if (content::RenderProcessHost::FromID(render_process_id) == NULL) { On 2013/04/22 18:17:10, ...
7 years, 8 months ago (2013-04-22 20:46:54 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jered@chromium.org/14039004/100001
7 years, 8 months ago (2013-04-22 20:53:28 UTC) #29
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=31696
7 years, 8 months ago (2013-04-22 23:43:49 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jered@chromium.org/14039004/100001
7 years, 8 months ago (2013-04-23 14:45:42 UTC) #31
commit-bot: I haz the power
7 years, 8 months ago (2013-04-23 22:45:05 UTC) #32
Message was sent while issue was closed.
Change committed as 195932

Powered by Google App Engine
This is Rietveld 408576698