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

Unified Diff: content/browser/browser_context.cc

Issue 1284403002: Fixing variable name typo ('Parition' -> Partition). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixTypo01
Patch Set: Addressing reviewers request, making global variable local. Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index 25ffaf2d835cb527c2b10d10cb43f773d4283433..825982ce130e3ae17f7e3bceaef8ff5036136151 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -36,20 +36,16 @@ namespace {
// Key names on BrowserContext.
const char kDownloadManagerKeyName[] = "download_manager";
-const char kStorageParitionMapKeyName[] = "content_storage_partition_map";
-
-#if defined(OS_CHROMEOS)
-const char kMountPointsKey[] = "mount_points";
-#endif // defined(OS_CHROMEOS)
+const char kStoragePartitionMapKeyName[] = "content_storage_partition_map";
StoragePartitionImplMap* GetStoragePartitionMap(
BrowserContext* browser_context) {
StoragePartitionImplMap* partition_map =
static_cast<StoragePartitionImplMap*>(
- browser_context->GetUserData(kStorageParitionMapKeyName));
+ browser_context->GetUserData(kStoragePartitionMapKeyName));
if (!partition_map) {
partition_map = new StoragePartitionImplMap(browser_context);
- browser_context->SetUserData(kStorageParitionMapKeyName, partition_map);
+ browser_context->SetUserData(kStoragePartitionMapKeyName, partition_map);
}
return partition_map;
}
@@ -145,6 +141,7 @@ storage::ExternalMountPoints* BrowserContext::GetMountPoints(
!BrowserThread::IsMessageLoopValid(BrowserThread::UI));
#if defined(OS_CHROMEOS)
+ const char kMountPointsKey[] = "mount_points";
davidben 2015/08/14 21:18:34 This miiiiight accidentally work, but only because
if (!context->GetUserData(kMountPointsKey)) {
scoped_refptr<storage::ExternalMountPoints> mount_points =
storage::ExternalMountPoints::CreateRefCounted();
@@ -199,7 +196,7 @@ void BrowserContext::ForEachStoragePartition(
const StoragePartitionCallback& callback) {
StoragePartitionImplMap* partition_map =
static_cast<StoragePartitionImplMap*>(
- browser_context->GetUserData(kStorageParitionMapKeyName));
+ browser_context->GetUserData(kStoragePartitionMapKeyName));
if (!partition_map)
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698