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

Side by Side Diff: chrome/browser/chromeos/login/kiosk_browsertest.cc

Issue 2201023002: Change access mode of disk devices when mounting based on config. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 4 years, 4 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 (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 <memory> 5 #include <memory>
6 #include <vector> 6 #include <vector>
7 7
8 #include "ash/desktop_background/desktop_background_controller.h" 8 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ash/desktop_background/desktop_background_controller_observer.h" 9 #include "ash/desktop_background/desktop_background_controller_observer.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 KioskFakeDiskMountManager() {} 353 KioskFakeDiskMountManager() {}
354 354
355 ~KioskFakeDiskMountManager() override {} 355 ~KioskFakeDiskMountManager() override {}
356 356
357 void set_usb_mount_path(const std::string& usb_mount_path) { 357 void set_usb_mount_path(const std::string& usb_mount_path) {
358 usb_mount_path_ = usb_mount_path; 358 usb_mount_path_ = usb_mount_path;
359 } 359 }
360 360
361 void MountUsbStick() { 361 void MountUsbStick() {
362 DCHECK(!usb_mount_path_.empty()); 362 DCHECK(!usb_mount_path_.empty());
363 MountPath(usb_mount_path_, "", "", chromeos::MOUNT_TYPE_DEVICE); 363 MountPath(usb_mount_path_, "", "", chromeos::MOUNT_TYPE_DEVICE,
364 chromeos::MOUNT_ACCESS_MODE_READ_ONLY);
364 } 365 }
365 366
366 void UnMountUsbStick() { 367 void UnMountUsbStick() {
367 DCHECK(!usb_mount_path_.empty()); 368 DCHECK(!usb_mount_path_.empty());
368 UnmountPath(usb_mount_path_, 369 UnmountPath(usb_mount_path_,
369 UNMOUNT_OPTIONS_NONE, 370 UNMOUNT_OPTIONS_NONE,
370 disks::DiskMountManager::UnmountPathCallback()); 371 disks::DiskMountManager::UnmountPathCallback());
371 } 372 }
372 373
373 private: 374 private:
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after
2402 content::WindowedNotificationObserver( 2403 content::WindowedNotificationObserver(
2403 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, 2404 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE,
2404 content::NotificationService::AllSources()).Wait(); 2405 content::NotificationService::AllSources()).Wait();
2405 2406
2406 // Wait for the wallpaper to load. 2407 // Wait for the wallpaper to load.
2407 WaitForWallpaper(); 2408 WaitForWallpaper();
2408 EXPECT_TRUE(wallpaper_loaded()); 2409 EXPECT_TRUE(wallpaper_loaded());
2409 } 2410 }
2410 2411
2411 } // namespace chromeos 2412 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/volume_manager_unittest.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698