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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2760023002: Fix tab restore for view-source Chrome extension pages (Merge to M58). (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 } 1308 }
1309 1309
1310 // These are treated as WebUI schemes but do not get WebUI bindings. Also, 1310 // These are treated as WebUI schemes but do not get WebUI bindings. Also,
1311 // view-source is allowed for these schemes. 1311 // view-source is allowed for these schemes.
1312 void ChromeContentBrowserClient::GetAdditionalWebUISchemes( 1312 void ChromeContentBrowserClient::GetAdditionalWebUISchemes(
1313 std::vector<std::string>* additional_schemes) { 1313 std::vector<std::string>* additional_schemes) {
1314 additional_schemes->push_back(chrome::kChromeSearchScheme); 1314 additional_schemes->push_back(chrome::kChromeSearchScheme);
1315 additional_schemes->push_back(dom_distiller::kDomDistillerScheme); 1315 additional_schemes->push_back(dom_distiller::kDomDistillerScheme);
1316 } 1316 }
1317 1317
1318 void ChromeContentBrowserClient::GetAdditionalViewSourceSchemes(
1319 std::vector<std::string>* additional_schemes) {
1320 GetAdditionalWebUISchemes(additional_schemes);
1321
1322 #if BUILDFLAG(ENABLE_EXTENSIONS)
1323 additional_schemes->push_back(extensions::kExtensionScheme);
1324 #endif
1325 }
1326
1318 bool ChromeContentBrowserClient::LogWebUIUrl(const GURL& web_ui_url) const { 1327 bool ChromeContentBrowserClient::LogWebUIUrl(const GURL& web_ui_url) const {
1319 return webui::LogWebUIUrl(web_ui_url); 1328 return webui::LogWebUIUrl(web_ui_url);
1320 } 1329 }
1321 1330
1322 bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) { 1331 bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) {
1323 return ProfileIOData::IsHandledURL(url); 1332 return ProfileIOData::IsHandledURL(url);
1324 } 1333 }
1325 1334
1326 bool ChromeContentBrowserClient::CanCommitURL( 1335 bool ChromeContentBrowserClient::CanCommitURL(
1327 content::RenderProcessHost* process_host, 1336 content::RenderProcessHost* process_host,
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after
3555 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3564 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3556 return variations::GetVariationParamValue( 3565 return variations::GetVariationParamValue(
3557 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3566 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3558 } 3567 }
3559 3568
3560 // static 3569 // static
3561 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3570 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3562 const storage::QuotaSettings* settings) { 3571 const storage::QuotaSettings* settings) {
3563 g_default_quota_settings = settings; 3572 g_default_quota_settings = settings;
3564 } 3573 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/tab_contents/view_source_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698