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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 145973016: Support cross-profile copy between Chrome OS Google Drive folders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/fileapi/async_file_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 storage_partition_path, 2548 storage_partition_path,
2549 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( 2549 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken(
2550 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); 2550 MediaFileSystemBackend::kMediaTaskRunnerName)).get()));
2551 #endif 2551 #endif
2552 #if defined(OS_CHROMEOS) 2552 #if defined(OS_CHROMEOS)
2553 fileapi::ExternalMountPoints* external_mount_points = 2553 fileapi::ExternalMountPoints* external_mount_points =
2554 content::BrowserContext::GetMountPoints(browser_context); 2554 content::BrowserContext::GetMountPoints(browser_context);
2555 DCHECK(external_mount_points); 2555 DCHECK(external_mount_points);
2556 chromeos::FileSystemBackend* backend = 2556 chromeos::FileSystemBackend* backend =
2557 new chromeos::FileSystemBackend( 2557 new chromeos::FileSystemBackend(
2558 new drive::FileSystemBackendDelegate(browser_context), 2558 new drive::FileSystemBackendDelegate,
2559 browser_context->GetSpecialStoragePolicy(), 2559 browser_context->GetSpecialStoragePolicy(),
2560 external_mount_points, 2560 external_mount_points,
2561 fileapi::ExternalMountPoints::GetSystemInstance()); 2561 fileapi::ExternalMountPoints::GetSystemInstance());
2562 backend->AddSystemMountPoints(); 2562 backend->AddSystemMountPoints();
2563 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); 2563 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal));
2564 additional_backends->push_back(backend); 2564 additional_backends->push_back(backend);
2565 #endif 2565 #endif
2566 2566
2567 additional_backends->push_back( 2567 additional_backends->push_back(
2568 new sync_file_system::SyncFileSystemBackend( 2568 new sync_file_system::SyncFileSystemBackend(
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2700 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on 2700 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on
2701 // Chromium builds as well. 2701 // Chromium builds as well.
2702 return channel <= chrome::VersionInfo::CHANNEL_DEV; 2702 return channel <= chrome::VersionInfo::CHANNEL_DEV;
2703 #else 2703 #else
2704 return false; 2704 return false;
2705 #endif 2705 #endif
2706 } 2706 }
2707 2707
2708 2708
2709 } // namespace chrome 2709 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/fileapi/async_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698