| OLD | NEW |
| 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 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
| 33 #include "chrome/browser/profiles/profile_dependency_manager.h" | 33 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 34 #include "chrome/browser/sync/profile_sync_service_factory.h" | 34 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 35 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
| 36 #include "chrome/common/chrome_version_info.h" | 36 #include "chrome/common/chrome_version_info.h" |
| 37 #include "chrome/common/pref_names.h" | 37 #include "chrome/common/pref_names.h" |
| 38 #include "content/public/browser/browser_context.h" | 38 #include "content/public/browser/browser_context.h" |
| 39 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
| 40 #include "content/public/browser/storage_partition.h" | 40 #include "content/public/browser/storage_partition.h" |
| 41 #include "google/cacheinvalidation/types.pb.h" | 41 #include "google/cacheinvalidation/types.pb.h" |
| 42 #include "webkit/fileapi/external_mount_points.h" | 42 #include "webkit/browser/fileapi/external_mount_points.h" |
| 43 #include "webkit/user_agent/user_agent_util.h" | 43 #include "webkit/user_agent/user_agent_util.h" |
| 44 | 44 |
| 45 using content::BrowserContext; | 45 using content::BrowserContext; |
| 46 using content::BrowserThread; | 46 using content::BrowserThread; |
| 47 | 47 |
| 48 namespace drive { | 48 namespace drive { |
| 49 namespace { | 49 namespace { |
| 50 | 50 |
| 51 static const size_t kEventLogHistorySize = 100; | 51 static const size_t kEventLogHistorySize = 100; |
| 52 | 52 |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 if (factory_for_test_.is_null()) | 438 if (factory_for_test_.is_null()) |
| 439 service = new DriveSystemService(profile, NULL, base::FilePath(), NULL); | 439 service = new DriveSystemService(profile, NULL, base::FilePath(), NULL); |
| 440 else | 440 else |
| 441 service = factory_for_test_.Run(profile); | 441 service = factory_for_test_.Run(profile); |
| 442 | 442 |
| 443 service->Initialize(); | 443 service->Initialize(); |
| 444 return service; | 444 return service; |
| 445 } | 445 } |
| 446 | 446 |
| 447 } // namespace drive | 447 } // namespace drive |
| OLD | NEW |