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

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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 return chromeos::CreateUserWallpaperDelegate(); 317 return chromeos::CreateUserWallpaperDelegate();
318 #else 318 #else
319 return NULL; 319 return NULL;
320 #endif 320 #endif
321 } 321 }
322 322
323 aura::client::UserActionClient* ChromeShellDelegate::CreateUserActionClient() { 323 aura::client::UserActionClient* ChromeShellDelegate::CreateUserActionClient() {
324 return new UserActionHandler; 324 return new UserActionHandler;
325 } 325 }
326 326
327 void ChromeShellDelegate::OpenFeedbackPage() {
328 chrome::OpenFeedbackDialog(GetTargetBrowser());
329 }
330
327 void ChromeShellDelegate::Observe(int type, 331 void ChromeShellDelegate::Observe(int type,
328 const content::NotificationSource& source, 332 const content::NotificationSource& source,
329 const content::NotificationDetails& details) { 333 const content::NotificationDetails& details) {
330 #if defined(OS_CHROMEOS) 334 #if defined(OS_CHROMEOS)
331 switch (type) { 335 switch (type) {
332 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: 336 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED:
333 ash::Shell::GetInstance()->CreateLauncher(); 337 ash::Shell::GetInstance()->CreateLauncher();
334 break; 338 break;
335 default: 339 default:
336 NOTREACHED() << "Unexpected notification " << type; 340 NOTREACHED() << "Unexpected notification " << type;
337 } 341 }
338 #else 342 #else
339 // MSVC++ warns about switch statements without any cases. 343 // MSVC++ warns about switch statements without any cases.
340 NOTREACHED() << "Unexpected notification " << type; 344 NOTREACHED() << "Unexpected notification " << type;
341 #endif 345 #endif
342 } 346 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/chrome_shell_delegate.h ('k') | chrome/browser/ui/webui/feedback_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698