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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/job_event_router.cc

Issue 1192493003: Move browser-agnostic code from file_system_util to file_system_core_util. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drive-prefservice
Patch Set: Fixed copyright headers in the 3 new files. Created 5 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/extensions/file_manager/job_event_router.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/job_event_router.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
10 #include "chrome/browser/chromeos/drive/file_system_util.h" 10 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
11 #include "chrome/browser/chromeos/file_manager/app_id.h" 11 #include "chrome/browser/chromeos/file_manager/app_id.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 14
15 using content::BrowserThread; 15 using content::BrowserThread;
16 namespace file_manager_private = extensions::api::file_manager_private; 16 namespace file_manager_private = extensions::api::file_manager_private;
17 17
18 namespace file_manager { 18 namespace file_manager {
19 namespace { 19 namespace {
20 20
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 pending_event_->processed = num_completed_bytes_; 127 pending_event_->processed = num_completed_bytes_;
128 pending_event_->total = num_total_bytes_; 128 pending_event_->total = num_total_bytes_;
129 129
130 BroadcastEvent( 130 BroadcastEvent(
131 file_manager_private::OnFileTransfersUpdated::kEventName, 131 file_manager_private::OnFileTransfersUpdated::kEventName,
132 file_manager_private::OnFileTransfersUpdated::Create(*pending_event_)); 132 file_manager_private::OnFileTransfersUpdated::Create(*pending_event_));
133 pending_event_.reset(); 133 pending_event_.reset();
134 } 134 }
135 135
136 } // namespace file_manager 136 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698