Update browser_commands.cc

This commit is contained in:
Alexander David Frick 2022-07-30 10:30:50 -05:00 committed by GitHub
parent 6a00ba76ac
commit ebbfbf9dbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@
#include "chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.h" #include "chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.h"
#include "chrome/browser/ui/read_later/reading_list_model_factory.h" #include "chrome/browser/ui/read_later/reading_list_model_factory.h"
#include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
#include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_bubble_controller.h" #include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_bubble.h"
#include "chrome/browser/ui/sharing_hub/screenshot/screenshot_captured_bubble_controller.h" #include "chrome/browser/ui/sharing_hub/screenshot/screenshot_captured_bubble_controller.h"
#include "chrome/browser/ui/sharing_hub/sharing_hub_bubble_controller.h" #include "chrome/browser/ui/sharing_hub/sharing_hub_bubble_controller.h"
#include "chrome/browser/ui/startup/startup_tab.h" #include "chrome/browser/ui/startup/startup_tab.h"
@ -1286,10 +1286,7 @@ void ManagePasswordsForPage(Browser* browser) {
void SendTabToSelfFromPageAction(Browser* browser) { void SendTabToSelfFromPageAction(Browser* browser) {
WebContents* web_contents = WebContents* web_contents =
browser->tab_strip_model()->GetActiveWebContents(); browser->tab_strip_model()->GetActiveWebContents();
send_tab_to_self::SendTabToSelfBubbleController* controller = send_tab_to_self::ShowBubble(web_contents);
send_tab_to_self::SendTabToSelfBubbleController::
CreateOrGetFromWebContents(web_contents);
controller->ShowBubble();
} }
void GenerateQRCodeFromPageAction(Browser* browser) { void GenerateQRCodeFromPageAction(Browser* browser) {