Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 2850403002: Fix crash under ExclusiveAccessBubbleViews::AnimationProgressed(). (Closed)
Patch Set: respond to comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 2676 matching lines...) Expand 10 before | Expand all | Expand 10 after
2687 } 2687 }
2688 2688
2689 bool BrowserView::IsImmersiveModeEnabled() { 2689 bool BrowserView::IsImmersiveModeEnabled() {
2690 return immersive_mode_controller()->IsEnabled(); 2690 return immersive_mode_controller()->IsEnabled();
2691 } 2691 }
2692 2692
2693 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() { 2693 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() {
2694 return top_container_->GetBoundsInScreen(); 2694 return top_container_->GetBoundsInScreen();
2695 } 2695 }
2696 2696
2697 void BrowserView::DestroyAnyExclusiveAccessBubble() {
2698 exclusive_access_bubble_.reset();
2699 new_back_shortcut_bubble_.reset();
2700 }
2701
2697 extensions::ActiveTabPermissionGranter* 2702 extensions::ActiveTabPermissionGranter*
2698 BrowserView::GetActiveTabPermissionGranter() { 2703 BrowserView::GetActiveTabPermissionGranter() {
2699 content::WebContents* web_contents = GetActiveWebContents(); 2704 content::WebContents* web_contents = GetActiveWebContents();
2700 if (!web_contents) 2705 if (!web_contents)
2701 return nullptr; 2706 return nullptr;
2702 return extensions::TabHelper::FromWebContents(web_contents) 2707 return extensions::TabHelper::FromWebContents(web_contents)
2703 ->active_tab_permission_granter(); 2708 ->active_tab_permission_granter();
2704 } 2709 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698