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

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

Issue 8937001: Fixes for the kWasRestarted pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test build fix. 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
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 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 } 1785 }
1786 } 1786 }
1787 1787
1788 void Browser::ShowKeyboardOverlay() { 1788 void Browser::ShowKeyboardOverlay() {
1789 window_->ShowKeyboardOverlay(window_->GetNativeHandle()); 1789 window_->ShowKeyboardOverlay(window_->GetNativeHandle());
1790 } 1790 }
1791 #endif 1791 #endif
1792 1792
1793 void Browser::Exit() { 1793 void Browser::Exit() {
1794 UserMetrics::RecordAction(UserMetricsAction("Exit")); 1794 UserMetrics::RecordAction(UserMetricsAction("Exit"));
1795 BrowserList::AttemptUserExit(false); 1795 BrowserList::AttemptUserExit();
1796 } 1796 }
1797 1797
1798 void Browser::BookmarkCurrentPage() { 1798 void Browser::BookmarkCurrentPage() {
1799 UserMetrics::RecordAction(UserMetricsAction("Star")); 1799 UserMetrics::RecordAction(UserMetricsAction("Star"));
1800 1800
1801 BookmarkModel* model = profile()->GetBookmarkModel(); 1801 BookmarkModel* model = profile()->GetBookmarkModel();
1802 if (!model || !model->IsLoaded()) 1802 if (!model || !model->IsLoaded())
1803 return; // Ignore requests until bookmarks are loaded. 1803 return; // Ignore requests until bookmarks are loaded.
1804 1804
1805 GURL url; 1805 GURL url;
(...skipping 3547 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 window_->GetLocationBar()->ShowFirstRunBubble(bubble_type); 5353 window_->GetLocationBar()->ShowFirstRunBubble(bubble_type);
5354 } else { 5354 } else {
5355 GlobalErrorService* service = 5355 GlobalErrorService* service =
5356 GlobalErrorServiceFactory::GetForProfile(profile()); 5356 GlobalErrorServiceFactory::GetForProfile(profile());
5357 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); 5357 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView();
5358 if (error) { 5358 if (error) {
5359 error->ShowBubbleView(this); 5359 error->ShowBubbleView(this);
5360 } 5360 }
5361 } 5361 }
5362 } 5362 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698