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

Side by Side Diff: chrome/browser/chromeos/drive/drive_system_service.cc

Issue 14493009: drive: Rename DriveScheduler to JobScheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indent Created 7 years, 8 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/chromeos/drive/drive_system_service.h" 5 #include "chrome/browser/chromeos/drive/drive_system_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 g_browser_process->system_request_context(), 118 g_browser_process->system_request_context(),
119 GURL(google_apis::DriveApiUrlGenerator::kBaseUrlForProduction), 119 GURL(google_apis::DriveApiUrlGenerator::kBaseUrlForProduction),
120 GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction), 120 GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction),
121 GetDriveUserAgent())); 121 GetDriveUserAgent()));
122 } else { 122 } else {
123 drive_service_.reset(new google_apis::GDataWapiService( 123 drive_service_.reset(new google_apis::GDataWapiService(
124 g_browser_process->system_request_context(), 124 g_browser_process->system_request_context(),
125 GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction), 125 GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction),
126 GetDriveUserAgent())); 126 GetDriveUserAgent()));
127 } 127 }
128 scheduler_.reset(new DriveScheduler(profile_, drive_service_.get())); 128 scheduler_.reset(new JobScheduler(profile_, drive_service_.get()));
129 cache_.reset(new DriveCache(!test_cache_root.empty() ? test_cache_root : 129 cache_.reset(new DriveCache(!test_cache_root.empty() ? test_cache_root :
130 DriveCache::GetCacheRootPath(profile), 130 DriveCache::GetCacheRootPath(profile),
131 blocking_task_runner_, 131 blocking_task_runner_,
132 NULL /* free_disk_space_getter */)); 132 NULL /* free_disk_space_getter */));
133 webapps_registry_.reset(new DriveWebAppsRegistry); 133 webapps_registry_.reset(new DriveWebAppsRegistry);
134 134
135 // We can call DriveCache::GetCacheDirectoryPath safely even before the cache 135 // We can call DriveCache::GetCacheDirectoryPath safely even before the cache
136 // gets initialized. 136 // gets initialized.
137 resource_metadata_.reset(new DriveResourceMetadata( 137 resource_metadata_.reset(new DriveResourceMetadata(
138 cache_->GetCacheDirectoryPath(DriveCache::CACHE_TYPE_META), 138 cache_->GetCacheDirectoryPath(DriveCache::CACHE_TYPE_META),
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 if (factory_for_test_.is_null()) 468 if (factory_for_test_.is_null())
469 service = new DriveSystemService(profile, NULL, base::FilePath(), NULL); 469 service = new DriveSystemService(profile, NULL, base::FilePath(), NULL);
470 else 470 else
471 service = factory_for_test_.Run(profile); 471 service = factory_for_test_.Run(profile);
472 472
473 service->Initialize(); 473 service->Initialize();
474 return service; 474 return service;
475 } 475 }
476 476
477 } // namespace drive 477 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_system_service.h ('k') | chrome/browser/chromeos/drive/file_system/copy_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698