Skip to content

Commit

Permalink
Fixed classic bookmarks on side panel, as well as switch to disable s…
Browse files Browse the repository at this point in the history
…ide panel.
  • Loading branch information
win32ss committed Jan 30, 2024
1 parent b8cf3b0 commit d5e39d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -9,7 +9,7 @@ import {BookmarkProductInfo} from '//bookmarks-side-panel.top-chrome/shared/shop
import {getInstance as getAnnouncerInstance} from 'chrome://resources/cr_elements/cr_a11y_announcer/cr_a11y_announcer.js';
import {FocusOutlineManager} from 'chrome://resources/js/focus_outline_manager.js';
import {loadTimeData} from 'chrome://resources/js/load_time_data.js';
import {listenOnce} from 'chrome://resources/js/util_ts.js';
import {listenOnce} from 'chrome://resources/js/util.js';
import {afterNextRender, PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';

import {BookmarkFolderElement, FOLDER_OPEN_CHANGED_EVENT, getBookmarkFromElement, isBookmarkFolderElement} from './bookmark_folder.js';
Expand Down
4 changes: 2 additions & 2 deletions chrome/browser/ui/views/toolbar/toolbar_view.cc
Expand Up @@ -442,9 +442,9 @@ void ToolbarView::Init() {
send_tab_to_self_button_ =
container_view_->AddChildView(std::move(send_tab_to_self_button));

if (!features::IsSidePanelPinningEnabled()) {
if (companion::IsCompanionFeatureEnabled() &&
if (!features::IsSidePanelPinningEnabled()&&
!base::CommandLine::ForCurrentProcess()->HasSwitch("hide-sidepanel-button")) {
if (companion::IsCompanionFeatureEnabled()) {
side_panel_container_ = container_view_->AddChildView(
std::make_unique<SidePanelToolbarContainer>(browser_view_));
} else {
Expand Down

0 comments on commit d5e39d9

Please sign in to comment.