mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 106.0.5249.0 (#1036826)
This commit is contained in:
@@ -1,18 +1,23 @@
|
||||
diff --git chrome/browser/ui/bookmarks/bookmark_stats.cc chrome/browser/ui/bookmarks/bookmark_stats.cc
|
||||
index 1f928081c142d..697914a83b3c4 100644
|
||||
--- chrome/browser/ui/bookmarks/bookmark_stats.cc
|
||||
+++ chrome/browser/ui/bookmarks/bookmark_stats.cc
|
||||
@@ -21,7 +21,9 @@ bool IsBookmarkBarLocation(BookmarkLaunchLocation location) {
|
||||
|
||||
auto GetMetricProfile(const Profile* profile) {
|
||||
DCHECK(profile);
|
||||
- DCHECK(profile->IsRegularProfile() || profile->IsIncognitoProfile());
|
||||
+ DCHECK(profile->IsRegularProfile() || profile->IsIncognitoProfile() ||
|
||||
+ (profile->IsOffTheRecord() &&
|
||||
+ profile->GetOTRProfileID().IsUniqueForCEF()));
|
||||
return profile->IsRegularProfile()
|
||||
? profile_metrics::BrowserProfileType::kRegular
|
||||
: profile_metrics::BrowserProfileType::kIncognito;
|
||||
diff --git chrome/browser/ui/views/incognito_clear_browsing_data_dialog.cc chrome/browser/ui/views/incognito_clear_browsing_data_dialog.cc
|
||||
index 4569d0afcb80a..5af2fb12f1d7a 100644
|
||||
index 62d33747b6c3f..4b8a512d1ca85 100644
|
||||
--- chrome/browser/ui/views/incognito_clear_browsing_data_dialog.cc
|
||||
+++ chrome/browser/ui/views/incognito_clear_browsing_data_dialog.cc
|
||||
@@ -30,6 +30,9 @@ IncognitoClearBrowsingDataDialog* g_incognito_cbd_dialog = nullptr;
|
||||
void IncognitoClearBrowsingDataDialog::Show(views::View* anchor_view,
|
||||
Profile* incognito_profile,
|
||||
Type type) {
|
||||
+ // The full toolbar may not be visible.
|
||||
+ if (!anchor_view)
|
||||
+ return;
|
||||
g_incognito_cbd_dialog = new IncognitoClearBrowsingDataDialog(
|
||||
anchor_view, incognito_profile, type);
|
||||
views::Widget* const widget =
|
||||
@@ -72,7 +75,9 @@ IncognitoClearBrowsingDataDialog::IncognitoClearBrowsingDataDialog(
|
||||
@@ -29,7 +29,9 @@ IncognitoClearBrowsingDataDialog::IncognitoClearBrowsingDataDialog(
|
||||
dialog_type_(type),
|
||||
incognito_profile_(incognito_profile) {
|
||||
DCHECK(incognito_profile_);
|
||||
@@ -23,6 +28,21 @@ index 4569d0afcb80a..5af2fb12f1d7a 100644
|
||||
SetButtons(ui::DIALOG_BUTTON_NONE);
|
||||
SetShowCloseButton(true);
|
||||
|
||||
diff --git chrome/browser/ui/views/incognito_clear_browsing_data_dialog_coordinator.cc chrome/browser/ui/views/incognito_clear_browsing_data_dialog_coordinator.cc
|
||||
index 10c69e08d9e41..847dc896eca41 100644
|
||||
--- chrome/browser/ui/views/incognito_clear_browsing_data_dialog_coordinator.cc
|
||||
+++ chrome/browser/ui/views/incognito_clear_browsing_data_dialog_coordinator.cc
|
||||
@@ -26,6 +26,10 @@ void IncognitoClearBrowsingDataDialogCoordinator::Show(
|
||||
->toolbar_button_provider()
|
||||
->GetAvatarToolbarButton();
|
||||
|
||||
+ // The full toolbar may not be visible.
|
||||
+ if (!avatar_toolbar_button)
|
||||
+ return;
|
||||
+
|
||||
auto bubble = std::make_unique<IncognitoClearBrowsingDataDialog>(
|
||||
avatar_toolbar_button, GetBrowser().profile(), type);
|
||||
DCHECK_EQ(nullptr, bubble_tracker_.view());
|
||||
diff --git chrome/browser/ui/views/profiles/incognito_menu_view.cc chrome/browser/ui/views/profiles/incognito_menu_view.cc
|
||||
index 34949452d4891..43aa445b5ac3f 100644
|
||||
--- chrome/browser/ui/views/profiles/incognito_menu_view.cc
|
||||
@@ -38,18 +58,18 @@ index 34949452d4891..43aa445b5ac3f 100644
|
||||
GetViewAccessibility().OverrideName(GetAccessibleWindowTitle());
|
||||
|
||||
base::RecordAction(base::UserMetricsAction("IncognitoMenu_Show"));
|
||||
diff --git chrome/browser/ui/views/profiles/profile_menu_view_base.cc chrome/browser/ui/views/profiles/profile_menu_view_base.cc
|
||||
index 1d4ea0995cbb3..64eba016377da 100644
|
||||
--- chrome/browser/ui/views/profiles/profile_menu_view_base.cc
|
||||
+++ chrome/browser/ui/views/profiles/profile_menu_view_base.cc
|
||||
@@ -508,7 +508,9 @@ void ProfileMenuViewBase::ShowBubble(views::Button* anchor_button,
|
||||
diff --git chrome/browser/ui/views/profiles/profile_menu_coordinator.cc chrome/browser/ui/views/profiles/profile_menu_coordinator.cc
|
||||
index 78c840b6fe442..7c694b9e8d754 100644
|
||||
--- chrome/browser/ui/views/profiles/profile_menu_coordinator.cc
|
||||
+++ chrome/browser/ui/views/profiles/profile_menu_coordinator.cc
|
||||
@@ -44,7 +44,9 @@ void ProfileMenuCoordinator::Show(bool is_source_accelerator) {
|
||||
feature_engagement::kIPHProfileSwitchFeature);
|
||||
|
||||
ProfileMenuViewBase* bubble = nullptr;
|
||||
- if (browser->profile()->IsIncognitoProfile()) {
|
||||
+ if (browser->profile()->IsIncognitoProfile() ||
|
||||
+ (browser->profile()->IsOffTheRecord() &&
|
||||
+ browser->profile()->GetOTRProfileID().IsUniqueForCEF())) {
|
||||
bubble = new IncognitoMenuView(anchor_button, browser);
|
||||
std::unique_ptr<ProfileMenuViewBase> bubble;
|
||||
- if (browser.profile()->IsIncognitoProfile()) {
|
||||
+ if (browser.profile()->IsIncognitoProfile() ||
|
||||
+ (browser.profile()->IsOffTheRecord() &&
|
||||
+ browser.profile()->GetOTRProfileID().IsUniqueForCEF())) {
|
||||
bubble =
|
||||
std::make_unique<IncognitoMenuView>(avatar_toolbar_button, &browser);
|
||||
} else {
|
||||
#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
|
Reference in New Issue
Block a user