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

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: 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
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);
switch (command_id) {
case StatusAreaButton::Delegate::SHOW_NETWORK_OPTIONS:
browser->OpenInternetOptionsDialog();

Powered by Google App Engine
This is Rietveld 408576698