| 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 if (bubble_.extension() && bubble_.type() == bubble_.PAGE_ACTION && | 599 if (bubble_.extension() && bubble_.type() == bubble_.PAGE_ACTION && |
| 601 !extensions::FeatureSwitch::extension_action_redesign()->IsEnabled()) { | 600 !extensions::FeatureSwitch::extension_action_redesign()->IsEnabled()) { |
| 602 BrowserView* browser_view = | 601 BrowserView* browser_view = |
| 603 BrowserView::GetBrowserViewForBrowser(bubble_.browser()); | 602 BrowserView::GetBrowserViewForBrowser(bubble_.browser()); |
| 604 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( | 603 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( |
| 605 extensions::ExtensionActionManager::Get(bubble_.browser()->profile())-> | 604 extensions::ExtensionActionManager::Get(bubble_.browser()->profile())-> |
| 606 GetPageAction(*bubble_.extension()), | 605 GetPageAction(*bubble_.extension()), |
| 607 false); // preview_enabled | 606 false); // preview_enabled |
| 608 } | 607 } |
| 609 } | 608 } |
| OLD | NEW |