| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/extension_installed_bubble_view.h" | 5 #include "chrome/browser/ui/views/extensions/extension_installed_bubble_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
| 13 #include "chrome/browser/extensions/api/commands/command_service.h" | 13 #include "chrome/browser/extensions/api/commands/command_service.h" |
| 14 #include "chrome/browser/extensions/extension_action.h" | 14 #include "chrome/browser/extensions/extension_action.h" |
| 15 #include "chrome/browser/extensions/extension_action_manager.h" | 15 #include "chrome/browser/extensions/extension_action_manager.h" |
| 16 #include "chrome/browser/extensions/extension_install_ui.h" | |
| 17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/signin/signin_promo.h" | 17 #include "chrome/browser/signin/signin_promo.h" |
| 19 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
| 20 #include "chrome/browser/ui/browser_window.h" | 19 #include "chrome/browser/ui/browser_window.h" |
| 21 #include "chrome/browser/ui/singleton_tabs.h" | 20 #include "chrome/browser/ui/singleton_tabs.h" |
| 22 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 21 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 23 #include "chrome/browser/ui/views/frame/browser_view.h" | 22 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 24 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 23 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 25 #include "chrome/browser/ui/views/location_bar/page_action_with_badge_view.h" | 24 #include "chrome/browser/ui/views/location_bar/page_action_with_badge_view.h" |
| 26 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 25 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 void ExtensionInstalledBubbleView::WindowClosing() { | 596 void ExtensionInstalledBubbleView::WindowClosing() { |
| 598 if (bubble_.extension() && bubble_.type() == bubble_.PAGE_ACTION) { | 597 if (bubble_.extension() && bubble_.type() == bubble_.PAGE_ACTION) { |
| 599 BrowserView* browser_view = | 598 BrowserView* browser_view = |
| 600 BrowserView::GetBrowserViewForBrowser(bubble_.browser()); | 599 BrowserView::GetBrowserViewForBrowser(bubble_.browser()); |
| 601 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( | 600 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( |
| 602 extensions::ExtensionActionManager::Get(bubble_.browser()->profile())-> | 601 extensions::ExtensionActionManager::Get(bubble_.browser()->profile())-> |
| 603 GetPageAction(*bubble_.extension()), | 602 GetPageAction(*bubble_.extension()), |
| 604 false); // preview_enabled | 603 false); // preview_enabled |
| 605 } | 604 } |
| 606 } | 605 } |
| OLD | NEW |