Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 8907025: Merge 114213 - Fixes for the kWasRestarted pref. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/browser_init.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/browser_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698