Commit 1e5b610f authored by Jeevan Shikaram's avatar Jeevan Shikaram Committed by Commit Bot

[App Management] Change the host URL of App Management.

Change the host URL of App Management from chrome://apps to
chrome://app-management.

Bug: 949397
Change-Id: I84679310872fd1d74ceef20b58f335e99f81aaca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1556863Reviewed-by: default avatarcalamity <calamity@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Commit-Queue: Jeevan Shikaram <jshikaram@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649794}
parent 5b369ca4
...@@ -748,6 +748,7 @@ bool IsHostAllowedInIncognito(const GURL& url) { ...@@ -748,6 +748,7 @@ bool IsHostAllowedInIncognito(const GURL& url) {
// chrome://extensions is on the list because it redirects to // chrome://extensions is on the list because it redirects to
// chrome://settings. // chrome://settings.
return host != chrome::kChromeUIAppLauncherPageHost && return host != chrome::kChromeUIAppLauncherPageHost &&
host != chrome::kChromeUIAppManagementHost &&
host != chrome::kChromeUISettingsHost && host != chrome::kChromeUISettingsHost &&
host != chrome::kChromeUIHelpHost && host != chrome::kChromeUIHelpHost &&
host != chrome::kChromeUIHistoryHost && host != chrome::kChromeUIHistoryHost &&
......
...@@ -26,7 +26,7 @@ namespace { ...@@ -26,7 +26,7 @@ namespace {
content::WebUIDataSource* CreateAppManagementUIHTMLSource(Profile* profile) { content::WebUIDataSource* CreateAppManagementUIHTMLSource(Profile* profile) {
content::WebUIDataSource* source = content::WebUIDataSource* source =
content::WebUIDataSource::Create(chrome::kChromeUIAppLauncherPageHost); content::WebUIDataSource::Create(chrome::kChromeUIAppManagementHost);
source->AddLocalizedString("appListTitle", IDS_APP_MANAGEMENT_APP_LIST_TITLE); source->AddLocalizedString("appListTitle", IDS_APP_MANAGEMENT_APP_LIST_TITLE);
source->AddLocalizedString("appNoPermission", source->AddLocalizedString("appNoPermission",
......
...@@ -432,7 +432,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, ...@@ -432,7 +432,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
***************************************************************************/ ***************************************************************************/
#if !defined(OS_ANDROID) #if !defined(OS_ANDROID)
if (AppManagementUI::IsEnabled() && if (AppManagementUI::IsEnabled() &&
url.host_piece() == chrome::kChromeUIAppLauncherPageHost && profile && url.host_piece() == chrome::kChromeUIAppManagementHost && profile &&
!profile->IsGuestSession()) { !profile->IsGuestSession()) {
return &NewWebUI<AppManagementUI>; return &NewWebUI<AppManagementUI>;
} }
...@@ -453,6 +453,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, ...@@ -453,6 +453,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
} }
if (profile->IsGuestSession() && if (profile->IsGuestSession() &&
(url.host_piece() == chrome::kChromeUIAppLauncherPageHost || (url.host_piece() == chrome::kChromeUIAppLauncherPageHost ||
url.host_piece() == chrome::kChromeUIAppManagementHost ||
url.host_piece() == chrome::kChromeUIBookmarksHost || url.host_piece() == chrome::kChromeUIBookmarksHost ||
url.host_piece() == chrome::kChromeUIHistoryHost || url.host_piece() == chrome::kChromeUIHistoryHost ||
url.host_piece() == chrome::kChromeUIExtensionsHost)) { url.host_piece() == chrome::kChromeUIExtensionsHost)) {
......
...@@ -22,7 +22,7 @@ const char kChromeUIAccessibilityHost[] = "accessibility"; ...@@ -22,7 +22,7 @@ const char kChromeUIAccessibilityHost[] = "accessibility";
const char kChromeUIAppIconHost[] = "app-icon"; const char kChromeUIAppIconHost[] = "app-icon";
const char kChromeUIAppIconURL[] = "chrome://app-icon/"; const char kChromeUIAppIconURL[] = "chrome://app-icon/";
const char kChromeUIAppLauncherPageHost[] = "apps"; const char kChromeUIAppLauncherPageHost[] = "apps";
const char kChromeUIAppManagementHost[] = "apps"; const char kChromeUIAppManagementHost[] = "app-management";
const char kChromeUIAppsURL[] = "chrome://apps/"; const char kChromeUIAppsURL[] = "chrome://apps/";
const char kChromeUIAutofillInternalsHost[] = "autofill-internals"; const char kChromeUIAutofillInternalsHost[] = "autofill-internals";
const char kChromeUIBluetoothInternalsHost[] = "bluetooth-internals"; const char kChromeUIBluetoothInternalsHost[] = "bluetooth-internals";
......
...@@ -4,7 +4,7 @@ Chrome, and especially Chrome OS, has apps, e.g. chat apps and camera apps. ...@@ -4,7 +4,7 @@ Chrome, and especially Chrome OS, has apps, e.g. chat apps and camera apps.
There are a number (lets call it `M`) of different places or app Consumers, There are a number (lets call it `M`) of different places or app Consumers,
usually UI (user interfaces) related, where users interact with their installed usually UI (user interfaces) related, where users interact with their installed
apps: e.g. launcher, search bar, shelf, New Tab Page, the `chrome://apps` page, apps: e.g. launcher, search bar, shelf, New Tab Page, the App Management page,
permissions or settings pages, picking and running default handlers for URLs, permissions or settings pages, picking and running default handlers for URLs,
MIME types or intents, etc. MIME types or intents, etc.
......
...@@ -16,7 +16,7 @@ function AppManagementBrowserTest() {} ...@@ -16,7 +16,7 @@ function AppManagementBrowserTest() {}
AppManagementBrowserTest.prototype = { AppManagementBrowserTest.prototype = {
__proto__: PolymerTest.prototype, __proto__: PolymerTest.prototype,
browsePreload: 'chrome://apps', browsePreload: 'chrome://app-management',
extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
'../test_store.js', '../test_store.js',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment