Index: chrome/browser/profiles/profile_impl_io_data.cc |
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc |
index e5c2456471953dd7aae70c9a38436291beb9472c..b5fc25abc09bda64266e586b24eff7f8f5705a46 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -211,9 +211,7 @@ ProfileImplIOData::Handle::GetIsolatedAppRequestContextGetter( |
const FilePath& partition_path, |
bool in_memory) const { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- // TODO(nasko): Check that the partition_path is not the same as the |
- // base profile path. We expect isolated partition, which will never go |
- // to the default profile path. |
+ CHECK(partition_path != profile_->GetPath()); |
LazyInitialize(); |
// Keep a map of request context getters, one per requested storage partition. |
@@ -243,10 +241,7 @@ ProfileImplIOData::Handle::GetIsolatedMediaRequestContextGetter( |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
// We must have a non-default path, or this will act like the default media |
// context. |
- // |
- // TODO(nasko): Check that the partition_path is not the same as the |
- // base profile path. We expect isolated partition, which will never go |
- // to the default profile path. |
+ CHECK(partition_path != profile_->GetPath()); |
LazyInitialize(); |
// Keep a map of request context getters, one per requested storage partition. |