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

Unified Diff: mojo/runner/scoped_user_data_dir.cc

Issue 1225673006: Revert of mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sqlite-fs
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/runner/scoped_user_data_dir.h ('k') | mojo/runner/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/scoped_user_data_dir.cc
diff --git a/mojo/runner/scoped_user_data_dir.cc b/mojo/runner/scoped_user_data_dir.cc
deleted file mode 100644
index 8709475b6dbdd451a383894f2ed2e729fa29f525..0000000000000000000000000000000000000000
--- a/mojo/runner/scoped_user_data_dir.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/runner/scoped_user_data_dir.h"
-
-#include "base/command_line.h"
-#include "base/logging.h"
-#include "mojo/runner/switches.h"
-
-namespace mojo {
-namespace runner {
-
-ScopedUserDataDir::ScopedUserDataDir() {
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- if (!command_line->HasSwitch(switches::kUseTemporaryUserDataDir))
- return;
-
- if (command_line->HasSwitch(switches::kUserDataDir)) {
- // User should not specify a --user-data-dir manually when using
- // --use-temporary-user-data-dir. The point of the flag is to let the
- // mojo runner process manage the lifetime of the user data dir.
- LOG(ERROR) << "Ignoring request to --use-temporary-user-data-dir because "
- << "--user-data-dir was also specified.";
- return;
- }
-
- if (!temp_dir_.CreateUniqueTempDir()) {
- LOG(ERROR) << "Failed to create a temporary user data dir.";
- return;
- }
-
- command_line->AppendSwitchPath(switches::kUserDataDir, temp_dir_.path());
-}
-
-ScopedUserDataDir::~ScopedUserDataDir() {
-}
-
-} // namespace runner
-} // namespace mojo
« no previous file with comments | « mojo/runner/scoped_user_data_dir.h ('k') | mojo/runner/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698