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

Side by Side Diff: mojo/shell/standalone/scoped_user_data_dir.h

Issue 1630823002: Move mojo/runner to mojo/shell/standalone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef MOJO_RUNNER_SCOPED_USER_DATA_DIR_H_ 5 #ifndef MOJO_SHELL_STANDALONE_SCOPED_USER_DATA_DIR_H_
6 #define MOJO_RUNNER_SCOPED_USER_DATA_DIR_H_ 6 #define MOJO_SHELL_STANDALONE_SCOPED_USER_DATA_DIR_H_
7 7
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace runner { 11 namespace shell {
12 12
13 // A scoped class which owns a ScopedTempDir if --use-temporary-user-data-dir 13 // A scoped class which owns a ScopedTempDir if --use-temporary-user-data-dir
14 // is set. If it is, also modifies the command line so that --user-data-dir 14 // is set. If it is, also modifies the command line so that --user-data-dir
15 // points to the temporary dir. 15 // points to the temporary dir.
16 class ScopedUserDataDir { 16 class ScopedUserDataDir {
17 public: 17 public:
18 ScopedUserDataDir(); 18 ScopedUserDataDir();
19 ~ScopedUserDataDir(); 19 ~ScopedUserDataDir();
20 20
21 private: 21 private:
22 base::ScopedTempDir temp_dir_; 22 base::ScopedTempDir temp_dir_;
23 }; 23 };
24 24
25 } // namespace runner 25 } // namespace shell
26 } // namespace mojo 26 } // namespace mojo
27 27
28 #endif // MOJO_RUNNER_SCOPED_USER_DATA_DIR_H_ 28 #endif // MOJO_SHELL_STANDALONE_SCOPED_USER_DATA_DIR_H_
OLDNEW
« no previous file with comments | « mojo/shell/standalone/register_local_aliases.cc ('k') | mojo/shell/standalone/scoped_user_data_dir.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698