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

Side by Side Diff: chrome/browser/chromeos/system_logs/touch_log_source.cc

Issue 12737006: Allow feedback form to be shown in an App Launcher feedback mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First round of feedback Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chromeos/system_logs/touch_log_source.h" 5 #include "chrome/browser/chromeos/system_logs/touch_log_source.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/touch/touch_observer_hud.h" 8 #include "ash/touch/touch_observer_hud.h"
9 #include "chrome/browser/feedback/feedback_util.h" 9 #include "chrome/browser/feedback/feedback_util.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 TouchLogSource::TouchLogSource() { 14 TouchLogSource::TouchLogSource() {
15 } 15 }
16 16
17 TouchLogSource::~TouchLogSource() { 17 TouchLogSource::~TouchLogSource() {
18 } 18 }
19 19
20 void TouchLogSource::Fetch(const SysLogsSourceCallback& callback) { 20 void TouchLogSource::Fetch(const SysLogsSourceCallback& callback) {
21 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 21 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
22 DCHECK(!callback.is_null()); 22 DCHECK(!callback.is_null());
23 23
24 SystemLogsResponse response; 24 SystemLogsResponse response;
25 if (ash::Shell::GetInstance()->touch_observer_hud()) { 25 if (ash::Shell::GetInstance()->touch_observer_hud()) {
26 response[kHUDLogDataKey] = 26 response[chrome::kHUDLogDataKey] =
27 ash::Shell::GetInstance()->touch_observer_hud()->GetLogAsString(); 27 ash::Shell::GetInstance()->touch_observer_hud()->GetLogAsString();
28 } 28 }
29 callback.Run(&response); 29 callback.Run(&response);
30 } 30 }
31 31
32 } // namespace chromeos 32 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698