| OLD | NEW |
| 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 <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 | 795 |
| 796 if (is_isolated) { | 796 if (is_isolated) { |
| 797 CHECK(site.has_host()); | 797 CHECK(site.has_host()); |
| 798 // For extensions with isolated storage, the the host of the |site| is | 798 // For extensions with isolated storage, the the host of the |site| is |
| 799 // the |partition_domain|. The |in_memory| and |partition_name| are only | 799 // the |partition_domain|. The |in_memory| and |partition_name| are only |
| 800 // used in guest schemes so they are cleared here. | 800 // used in guest schemes so they are cleared here. |
| 801 *partition_domain = site.host(); | 801 *partition_domain = site.host(); |
| 802 *in_memory = false; | 802 *in_memory = false; |
| 803 partition_name->clear(); | 803 partition_name->clear(); |
| 804 } | 804 } |
| 805 } else if (site.GetOrigin().spec() == kChromeUIChromeSigninURL) { |
| 806 // Chrome signin page has an embedded iframe of extension and web content, |
| 807 // thus it must be isolated from other webUI pages. |
| 808 *partition_domain = chrome::kChromeUIChromeSigninHost; |
| 805 } | 809 } |
| 806 | 810 |
| 807 // Assert that if |can_be_default| is false, the code above must have found a | 811 // Assert that if |can_be_default| is false, the code above must have found a |
| 808 // non-default partition. If this fails, the caller has a serious logic | 812 // non-default partition. If this fails, the caller has a serious logic |
| 809 // error about which StoragePartition they expect to be in and it is not | 813 // error about which StoragePartition they expect to be in and it is not |
| 810 // safe to continue. | 814 // safe to continue. |
| 811 CHECK(can_be_default || !partition_domain->empty()); | 815 CHECK(can_be_default || !partition_domain->empty()); |
| 812 } | 816 } |
| 813 | 817 |
| 814 content::WebContentsViewDelegate* | 818 content::WebContentsViewDelegate* |
| (...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2695 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on | 2699 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on |
| 2696 // Chromium builds as well. | 2700 // Chromium builds as well. |
| 2697 return channel <= chrome::VersionInfo::CHANNEL_DEV; | 2701 return channel <= chrome::VersionInfo::CHANNEL_DEV; |
| 2698 #else | 2702 #else |
| 2699 return false; | 2703 return false; |
| 2700 #endif | 2704 #endif |
| 2701 } | 2705 } |
| 2702 | 2706 |
| 2703 | 2707 |
| 2704 } // namespace chrome | 2708 } // namespace chrome |
| OLD | NEW |