Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cef
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
la
platform
external
cef
Commits
8b447e3a
Commit
8b447e3a
authored
2 years ago
by
Marshall Greenblatt
Browse files
Options
Downloads
Patches
Plain Diff
chrome: Don't show the profile picker on startup (fixes issue #3440)
parent
b065ca8c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libcef/common/chrome/chrome_main_delegate_cef.cc
+23
-0
23 additions, 0 deletions
libcef/common/chrome/chrome_main_delegate_cef.cc
libcef/common/chrome/chrome_main_delegate_cef.h
+1
-0
1 addition, 0 deletions
libcef/common/chrome/chrome_main_delegate_cef.h
with
24 additions
and
0 deletions
libcef/common/chrome/chrome_main_delegate_cef.cc
+
23
−
0
View file @
8b447e3a
...
...
@@ -19,7 +19,9 @@
#include
"base/command_line.h"
#include
"base/lazy_instance.h"
#include
"base/threading/threading_features.h"
#include
"chrome/browser/metrics/chrome_feature_list_creator.h"
#include
"chrome/common/chrome_switches.h"
#include
"chrome/common/pref_names.h"
#include
"components/embedder_support/switches.h"
#include
"content/public/common/content_switches.h"
#include
"sandbox/policy/switches.h"
...
...
@@ -204,6 +206,27 @@ absl::optional<int> ChromeMainDelegateCef::PreBrowserMain() {
return
absl
::
nullopt
;
}
absl
::
optional
<
int
>
ChromeMainDelegateCef
::
PostEarlyInitialization
(
InvokedIn
invoked_in
)
{
const
auto
result
=
ChromeMainDelegate
::
PostEarlyInitialization
(
invoked_in
);
if
(
!
result
)
{
const
auto
*
invoked_in_browser
=
absl
::
get_if
<
InvokedInBrowserProcess
>
(
&
invoked_in
);
if
(
invoked_in_browser
)
{
// At this point local_state has been created but ownership has not yet
// been passed to BrowserProcessImpl (g_browser_process is nullptr).
auto
*
local_state
=
chrome_content_browser_client_
->
startup_data
()
->
chrome_feature_list_creator
()
->
local_state
();
// Don't show the profile picker on startup (see issue #3440).
local_state
->
SetBoolean
(
prefs
::
kBrowserShowProfilePickerOnStartup
,
false
);
}
}
return
result
;
}
absl
::
variant
<
int
,
content
::
MainFunctionParams
>
ChromeMainDelegateCef
::
RunProcess
(
const
std
::
string
&
process_type
,
...
...
This diff is collapsed.
Click to expand it.
libcef/common/chrome/chrome_main_delegate_cef.h
+
1
−
0
View file @
8b447e3a
...
...
@@ -39,6 +39,7 @@ class ChromeMainDelegateCef : public ChromeMainDelegate,
absl
::
optional
<
int
>
BasicStartupComplete
()
override
;
void
PreSandboxStartup
()
override
;
absl
::
optional
<
int
>
PreBrowserMain
()
override
;
absl
::
optional
<
int
>
PostEarlyInitialization
(
InvokedIn
invoked_in
)
override
;
absl
::
variant
<
int
,
content
::
MainFunctionParams
>
RunProcess
(
const
std
::
string
&
process_type
,
content
::
MainFunctionParams
main_function_params
)
override
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment