| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/extensions/extension_installed_bubble.h" | 5 #include "chrome/browser/views/extensions/extension_installed_bubble.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
| 12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/views/browser_actions_container.h" | 14 #include "chrome/browser/views/browser_actions_container.h" |
| 15 #include "chrome/browser/views/frame/browser_view.h" | 15 #include "chrome/browser/views/frame/browser_view.h" |
| 16 #include "chrome/browser/views/location_bar/location_bar_view.h" | 16 #include "chrome/browser/views/location_bar/location_bar_view.h" |
| 17 #include "chrome/browser/views/toolbar_view.h" | 17 #include "chrome/browser/views/toolbar_view.h" |
| 18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
| 19 #include "chrome/common/extensions/extension_action.h" | 19 #include "chrome/common/extensions/extension_action.h" |
| 20 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
| 21 #include "chrome/common/notification_type.h" | 21 #include "chrome/common/notification_type.h" |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 if (extension_ && type_ == PAGE_ACTION) { | 344 if (extension_ && type_ == PAGE_ACTION) { |
| 345 BrowserView* browser_view = BrowserView::GetBrowserViewForNativeWindow( | 345 BrowserView* browser_view = BrowserView::GetBrowserViewForNativeWindow( |
| 346 browser_->window()->GetNativeHandle()); | 346 browser_->window()->GetNativeHandle()); |
| 347 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( | 347 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( |
| 348 extension_->page_action(), | 348 extension_->page_action(), |
| 349 false); // preview_enabled | 349 false); // preview_enabled |
| 350 } | 350 } |
| 351 | 351 |
| 352 Release(); // Balanced in ctor. | 352 Release(); // Balanced in ctor. |
| 353 } | 353 } |
| OLD | NEW |