| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1766 } | 1766 } |
| 1767 } | 1767 } |
| 1768 | 1768 |
| 1769 void Browser::ShowKeyboardOverlay() { | 1769 void Browser::ShowKeyboardOverlay() { |
| 1770 window_->ShowKeyboardOverlay(window_->GetNativeHandle()); | 1770 window_->ShowKeyboardOverlay(window_->GetNativeHandle()); |
| 1771 } | 1771 } |
| 1772 #endif | 1772 #endif |
| 1773 | 1773 |
| 1774 void Browser::Exit() { | 1774 void Browser::Exit() { |
| 1775 UserMetrics::RecordAction(UserMetricsAction("Exit")); | 1775 UserMetrics::RecordAction(UserMetricsAction("Exit")); |
| 1776 BrowserList::AttemptUserExit(); | 1776 BrowserList::AttemptUserExit(false); |
| 1777 } | 1777 } |
| 1778 | 1778 |
| 1779 void Browser::BookmarkCurrentPage() { | 1779 void Browser::BookmarkCurrentPage() { |
| 1780 UserMetrics::RecordAction(UserMetricsAction("Star")); | 1780 UserMetrics::RecordAction(UserMetricsAction("Star")); |
| 1781 | 1781 |
| 1782 BookmarkModel* model = profile()->GetBookmarkModel(); | 1782 BookmarkModel* model = profile()->GetBookmarkModel(); |
| 1783 if (!model || !model->IsLoaded()) | 1783 if (!model || !model->IsLoaded()) |
| 1784 return; // Ignore requests until bookmarks are loaded. | 1784 return; // Ignore requests until bookmarks are loaded. |
| 1785 | 1785 |
| 1786 GURL url; | 1786 GURL url; |
| (...skipping 3536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5323 window_->GetLocationBar()->ShowFirstRunBubble(bubble_type); | 5323 window_->GetLocationBar()->ShowFirstRunBubble(bubble_type); |
| 5324 } else { | 5324 } else { |
| 5325 GlobalErrorService* service = | 5325 GlobalErrorService* service = |
| 5326 GlobalErrorServiceFactory::GetForProfile(profile()); | 5326 GlobalErrorServiceFactory::GetForProfile(profile()); |
| 5327 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); | 5327 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); |
| 5328 if (error) { | 5328 if (error) { |
| 5329 error->ShowBubbleView(this); | 5329 error->ShowBubbleView(this); |
| 5330 } | 5330 } |
| 5331 } | 5331 } |
| 5332 } | 5332 } |
| OLD | NEW |