| 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 } | 1779 } |
| 1780 } | 1780 } |
| 1781 | 1781 |
| 1782 void Browser::ShowKeyboardOverlay() { | 1782 void Browser::ShowKeyboardOverlay() { |
| 1783 window_->ShowKeyboardOverlay(window_->GetNativeHandle()); | 1783 window_->ShowKeyboardOverlay(window_->GetNativeHandle()); |
| 1784 } | 1784 } |
| 1785 #endif | 1785 #endif |
| 1786 | 1786 |
| 1787 void Browser::Exit() { | 1787 void Browser::Exit() { |
| 1788 UserMetrics::RecordAction(UserMetricsAction("Exit")); | 1788 UserMetrics::RecordAction(UserMetricsAction("Exit")); |
| 1789 BrowserList::AttemptUserExit(false); | 1789 BrowserList::AttemptUserExit(); |
| 1790 } | 1790 } |
| 1791 | 1791 |
| 1792 void Browser::BookmarkCurrentPage() { | 1792 void Browser::BookmarkCurrentPage() { |
| 1793 UserMetrics::RecordAction(UserMetricsAction("Star")); | 1793 UserMetrics::RecordAction(UserMetricsAction("Star")); |
| 1794 | 1794 |
| 1795 BookmarkModel* model = profile()->GetBookmarkModel(); | 1795 BookmarkModel* model = profile()->GetBookmarkModel(); |
| 1796 if (!model || !model->IsLoaded()) | 1796 if (!model || !model->IsLoaded()) |
| 1797 return; // Ignore requests until bookmarks are loaded. | 1797 return; // Ignore requests until bookmarks are loaded. |
| 1798 | 1798 |
| 1799 GURL url; | 1799 GURL url; |
| (...skipping 3525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5325 window_->GetLocationBar()->ShowFirstRunBubble(bubble_type); | 5325 window_->GetLocationBar()->ShowFirstRunBubble(bubble_type); |
| 5326 } else { | 5326 } else { |
| 5327 GlobalErrorService* service = | 5327 GlobalErrorService* service = |
| 5328 GlobalErrorServiceFactory::GetForProfile(profile()); | 5328 GlobalErrorServiceFactory::GetForProfile(profile()); |
| 5329 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); | 5329 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); |
| 5330 if (error) { | 5330 if (error) { |
| 5331 error->ShowBubbleView(this); | 5331 error->ShowBubbleView(this); |
| 5332 } | 5332 } |
| 5333 } | 5333 } |
| 5334 } | 5334 } |
| OLD | NEW |