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

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

Issue 14895013: Move webkit/fileapi/file_system_mount_point_provider.h to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "chrome/browser/chromeos/drive/drive_system_service.h" 8 #include "chrome/browser/chromeos/drive/drive_system_service.h"
9 #include "chrome/browser/chromeos/drive/file_system.h" 9 #include "chrome/browser/chromeos/drive/file_system.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "content/public/browser/browser_context.h" 11 #include "content/public/browser/browser_context.h"
12 #include "webkit/fileapi/external_mount_points.h" 12 #include "webkit/browser/fileapi/external_mount_points.h"
13 13
14 namespace drive_test_util { 14 namespace drive_test_util {
15 15
16 namespace { 16 namespace {
17 17
18 const char kDriveMountPointName[] = "drive"; 18 const char kDriveMountPointName[] = "drive";
19 19
20 // Helper class used to wait for |OnFileSystemMounted| event from a drive file 20 // Helper class used to wait for |OnFileSystemMounted| event from a drive file
21 // system. 21 // system.
22 class DriveMountPointWaiter : public drive::DriveSystemServiceObserver { 22 class DriveMountPointWaiter : public drive::DriveSystemServiceObserver {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // GetRegisteredPath succeeds iff the mount point exists. 70 // GetRegisteredPath succeeds iff the mount point exists.
71 if (!content::BrowserContext::GetMountPoints(profile)-> 71 if (!content::BrowserContext::GetMountPoints(profile)->
72 GetRegisteredPath(kDriveMountPointName, &ignored)) { 72 GetRegisteredPath(kDriveMountPointName, &ignored)) {
73 LOG(WARNING) << "Waiting for drive mount point to get mounted."; 73 LOG(WARNING) << "Waiting for drive mount point to get mounted.";
74 mount_point_waiter.Wait(); 74 mount_point_waiter.Wait();
75 LOG(WARNING) << "Drive mount point found."; 75 LOG(WARNING) << "Drive mount point found.";
76 } 76 }
77 } 77 }
78 78
79 } // namespace drive_test_util 79 } // namespace drive_test_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698