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

Issue 2743323005: MD Settings: enhance restarting Chrome + interacting w/ session restore (Closed)

Created:
3 years, 9 months ago by Dan Beam
Modified:
3 years, 9 months ago
Reviewers:
Lei Zhang, Charlie Reis, jam, sky
CC:
chromium-reviews, jdonnelly+watch_chromium.org, miu+watch_chromium.org, darin-cc_chromium.org, tfarina, calamity, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: enhance restarting Chrome + interacting w/ session restore When a user has a tab with chrome://settings open and they restart, and that restart causes the MaterialDesignSettings feature to be enabled or disabled, we should do sane things. Currently, this means nuking session restore data for those URLs. This is how history works. BUG=700350 R=sky@chromium.org

Patch Set 1 #

Patch Set 2 : merge #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -44 lines) Patch
M chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/browser_about_handler.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/browser_about_handler_unittest.cc View 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/custom_home_pages_table_model.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/system_menu_model_builder.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/uber/uber_ui.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/common/url_constants.cc View 1 5 chunks +2 lines, -4 lines 0 comments Download
M components/sessions/content/content_serialized_navigation_driver.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/public/common/url_constants.h View 1 2 chunks +2 lines, -0 lines 3 comments Download
M content/public/common/url_constants.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
Dan Beam
3 years, 9 months ago (2017-03-14 06:38:09 UTC) #1
sky
LGTM
3 years, 9 months ago (2017-03-14 18:02:03 UTC) #6
Dan Beam
+creis@ for content/OWNERS (moved some URL constants from chrome/common/url_constants.h to content/public/common/url_constants.h)
3 years, 9 months ago (2017-03-17 01:46:17 UTC) #8
Charlie Reis
Fix looks good. One concern about the content API, which jam@ might be able to ...
3 years, 9 months ago (2017-03-17 17:43:12 UTC) #15
sky
In looking at this again I don't think we should be adding constants to content ...
3 years, 9 months ago (2017-03-17 19:11:42 UTC) #17
Dan Beam
sorry, forgot to publish https://codereview.chromium.org/2743323005/diff/20001/content/public/common/url_constants.h File content/public/common/url_constants.h (right): https://codereview.chromium.org/2743323005/diff/20001/content/public/common/url_constants.h#newcode39 content/public/common/url_constants.h:39: CONTENT_EXPORT extern const char kChromeUIHelpHost[]; ...
3 years, 9 months ago (2017-03-17 19:54:07 UTC) #18
sky
I'm not a content owner and you have John on this review. I'll let him ...
3 years, 9 months ago (2017-03-17 20:02:15 UTC) #19
jam
kChromeUIHelpHost, like kChromeUIHistoryHost, are for chrome features and so don't belong in content. The previous ...
3 years, 9 months ago (2017-03-17 21:05:46 UTC) #20
Theresa
3 years, 9 months ago (2017-03-17 21:32:14 UTC) #21
On 2017/03/17 21:05:46, jam wrote:
> kChromeUIHelpHost, like kChromeUIHistoryHost, are for chrome features and so
> don't belong in content. The previous change, and this one, moved it to
content
> just because it's a convenient place that chrome and the component can depend
> on, but that doesn't change the fact that content doesn't know about schemes
> that embedders like chrome might use.
> https://www.chromium.org/developers/content-module
> 
> The solution here would be to move history and help back to chrome, and chrome
> can pass these on to content_serialized_navigation_driver through some
> configuration method at startup (i.e. 
> ContentSerializedNavigationDriver:ConfigureChromeURLS(GURL history, GURL
help).
> we should also undo the chrome specific schemes that got added in
> https://codereview.chromium.org/2676893002 and 
> https://codereview.chromium.org/2355543003. This shouldn't be much work.

If we're going that route, we should also pass in the strings for the Chrome for
Android NTP redirect that were hard-coded in
content_serialization_navigation.driver.cc a couple of years ago.

Powered by Google App Engine
This is Rietveld 408576698