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

Side by Side Diff: chrome/browser/media_gallery/linux/mtp_get_file_info_worker.cc

Issue 11744014: [Media Gallery] Move chrome/browser/media_transfer_protocol code to src/device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gclient runhooks error Created 7 years, 11 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/media_gallery/linux/mtp_get_file_info_worker.h" 5 #include "chrome/browser/media_gallery/linux/mtp_get_file_info_worker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/sequenced_task_runner.h" 8 #include "base/sequenced_task_runner.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "chrome/browser/media_transfer_protocol/media_transfer_protocol_manager .h"
11 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
12 12
13 namespace chrome { 13 namespace chrome {
14 14
15 using content::BrowserThread; 15 using content::BrowserThread;
16 16
17 MTPGetFileInfoWorker::MTPGetFileInfoWorker( 17 MTPGetFileInfoWorker::MTPGetFileInfoWorker(
18 const std::string& handle, 18 const std::string& handle,
19 const std::string& path, 19 const std::string& path,
20 base::SequencedTaskRunner* task_runner, 20 base::SequencedTaskRunner* task_runner,
21 base::WaitableEvent* task_completed_event, 21 base::WaitableEvent* task_completed_event,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 file_entry_info_.last_modified = 88 file_entry_info_.last_modified =
89 base::Time::FromTimeT(file_entry.modification_time()); 89 base::Time::FromTimeT(file_entry.modification_time());
90 file_entry_info_.last_accessed = 90 file_entry_info_.last_accessed =
91 base::Time::FromTimeT(file_entry.modification_time()); 91 base::Time::FromTimeT(file_entry.modification_time());
92 file_entry_info_.creation_time = base::Time(); 92 file_entry_info_.creation_time = base::Time();
93 } 93 }
94 on_task_completed_event_->Signal(); 94 on_task_completed_event_->Signal();
95 } 95 }
96 96
97 } // namespace chrome 97 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698