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

Side by Side Diff: chrome/browser/ui/views/ash/chrome_shell_delegate.cc

Issue 10698115: Support "Report Issue" in case of no-browser windows in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/views/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h"
6 6
7 #include "ash/launcher/launcher_types.h" 7 #include "ash/launcher/launcher_types.h"
8 #include "ash/system/tray/system_tray_delegate.h" 8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "ash/wm/partial_screenshot_view.h" 9 #include "ash/wm/partial_screenshot_view.h"
10 #include "ash/wm/window_util.h" 10 #include "ash/wm/window_util.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 return chromeos::CreateUserWallpaperDelegate(); 316 return chromeos::CreateUserWallpaperDelegate();
317 #else 317 #else
318 return NULL; 318 return NULL;
319 #endif 319 #endif
320 } 320 }
321 321
322 aura::client::UserActionClient* ChromeShellDelegate::CreateUserActionClient() { 322 aura::client::UserActionClient* ChromeShellDelegate::CreateUserActionClient() {
323 return new UserActionHandler; 323 return new UserActionHandler;
324 } 324 }
325 325
326 void ChromeShellDelegate::OpenFeedbackPage() {
327 Browser* browser = GetTargetBrowser();
328 chrome::OpenFeedbackDialog(browser);
329 }
330
326 void ChromeShellDelegate::Observe(int type, 331 void ChromeShellDelegate::Observe(int type,
327 const content::NotificationSource& source, 332 const content::NotificationSource& source,
328 const content::NotificationDetails& details) { 333 const content::NotificationDetails& details) {
329 #if defined(OS_CHROMEOS) 334 #if defined(OS_CHROMEOS)
330 switch (type) { 335 switch (type) {
331 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: 336 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED:
332 ash::Shell::GetInstance()->CreateLauncher(); 337 ash::Shell::GetInstance()->CreateLauncher();
333 break; 338 break;
334 default: 339 default:
335 NOTREACHED() << "Unexpected notification " << type; 340 NOTREACHED() << "Unexpected notification " << type;
336 } 341 }
337 #else 342 #else
338 // MSVC++ warns about switch statements without any cases. 343 // MSVC++ warns about switch statements without any cases.
339 NOTREACHED() << "Unexpected notification " << type; 344 NOTREACHED() << "Unexpected notification " << type;
340 #endif 345 #endif
341 } 346 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698