mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-07 05:43:21 +00:00
Fixed default initialization of profile names
This commit is contained in:
22
src/toolkit/profile/nsToolkitProfileService-cpp.patch
Normal file
22
src/toolkit/profile/nsToolkitProfileService-cpp.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/toolkit/profile/nsToolkitProfileService.cpp b/toolkit/profile/nsToolkitProfileService.cpp
|
||||
index b5510497e20b6d989c9dd8fff0c04b585bdc75bd..25fd837240fd849fd26b4cb8b8172423f6f7d8fc 100644
|
||||
--- a/toolkit/profile/nsToolkitProfileService.cpp
|
||||
+++ b/toolkit/profile/nsToolkitProfileService.cpp
|
||||
@@ -82,6 +82,8 @@ using namespace mozilla;
|
||||
#define INSTALL_PREFIX_LENGTH 7
|
||||
#define STORE_ID_PREF "toolkit.profiles.storeID"
|
||||
|
||||
+#include "zenToolkitProfileServiceDefaultOverride.h"
|
||||
+
|
||||
struct KeyValue {
|
||||
KeyValue(const char* aKey, const char* aValue) : key(aKey), value(aValue) {}
|
||||
|
||||
@@ -1409,7 +1411,7 @@ nsresult nsToolkitProfileService::CreateDefaultProfile(
|
||||
if (mUseDevEditionProfile) {
|
||||
name.AssignLiteral(DEV_EDITION_NAME);
|
||||
} else if (mUseDedicatedProfile) {
|
||||
- name.AppendPrintf("default-%s", mUpdateChannel.get());
|
||||
+ name.AppendPrintf("Default (%s)", mUpdateChannel.get());
|
||||
} else {
|
||||
name.AssignLiteral(DEFAULT_NAME);
|
||||
}
|
||||
Reference in New Issue
Block a user