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

Unified Diff: chrome/browser/ui/views/aura/status_area_host_aura.cc

Issue 8930001: Fix up status area clock code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/status/status_area_view_chromeos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/aura/status_area_host_aura.cc
diff --git a/chrome/browser/ui/views/aura/status_area_host_aura.cc b/chrome/browser/ui/views/aura/status_area_host_aura.cc
index 1a0445635da322a99a00feffe975f3de36cd4276..985641f31213e0796bc91602a4c7c2f52fc10f75 100644
--- a/chrome/browser/ui/views/aura/status_area_host_aura.cc
+++ b/chrome/browser/ui/views/aura/status_area_host_aura.cc
@@ -103,8 +103,10 @@ void StatusAreaHostAura::ExecuteStatusAreaCommand(
const views::View* button_view, int command_id) {
#if defined(OS_CHROMEOS)
if (chromeos::StatusAreaViewChromeos::IsBrowserMode()) {
- Browser* browser = BrowserList::FindBrowserWithProfile(
- ProfileManager::GetDefaultProfile());
+ Profile* profile = ProfileManager::GetDefaultProfile();
+ Browser* browser = BrowserList::FindBrowserWithProfile(profile);
+ if (!browser)
+ browser = Browser::Create(profile);
Nikita (slow) 2011/12/26 10:48:38 This will happen when there're no browser windows
switch (command_id) {
case StatusAreaButton::Delegate::SHOW_NETWORK_OPTIONS:
browser->OpenInternetOptionsDialog();
« no previous file with comments | « chrome/browser/chromeos/status/status_area_view_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698