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

Side by Side Diff: content/common/site_isolation_policy.cc

Issue 2648053002: Remove old session history logic. (Closed)
Patch Set: Remove comment. Created 3 years, 11 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
« no previous file with comments | « content/common/site_isolation_policy.h ('k') | content/common/swapped_out_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/common/site_isolation_policy.h" 5 #include "content/common/site_isolation_policy.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "content/public/common/browser_side_navigation_policy.h" 10 #include "content/public/common/browser_side_navigation_policy.h"
(...skipping 20 matching lines...) Expand all
31 // static 31 // static
32 bool SiteIsolationPolicy::IsTopDocumentIsolationEnabled() { 32 bool SiteIsolationPolicy::IsTopDocumentIsolationEnabled() {
33 // --site-per-process trumps --top-document-isolation. 33 // --site-per-process trumps --top-document-isolation.
34 if (UseDedicatedProcessesForAllSites()) 34 if (UseDedicatedProcessesForAllSites())
35 return false; 35 return false;
36 36
37 return base::CommandLine::ForCurrentProcess()->HasSwitch( 37 return base::CommandLine::ForCurrentProcess()->HasSwitch(
38 switches::kTopDocumentIsolation); 38 switches::kTopDocumentIsolation);
39 } 39 }
40 40
41 // static
42 bool SiteIsolationPolicy::UseSubframeNavigationEntries() {
43 return true;
44 }
45
46 } // namespace content 41 } // namespace content
OLDNEW
« no previous file with comments | « content/common/site_isolation_policy.h ('k') | content/common/swapped_out_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698