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

Side by Side Diff: components/os_crypt/key_storage_util_linux.h

Issue 2256633002: Add two more options for the --password-store switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit 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
« no previous file with comments | « components/os_crypt/key_storage_linux.cc ('k') | components/os_crypt/key_storage_util_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
Lei Zhang 2016/08/17 14:36:25 Probably good to put the bits in this file inside
cfroussios 2016/08/17 15:04:33 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_OS_CRYPT_KEY_STORAGE_UTIL_LINUX_H_
6 #define COMPONENTS_OS_CRYPT_KEY_STORAGE_UTIL_LINUX_H_
7
8 #include <string>
9
10 #include "base/nix/xdg_util.h"
11
12 // The supported Linux backends for storing passwords.
13 enum class SelectedLinuxBackend {
14 DEFER, // No selection
15 BASIC_TEXT,
16 GNOME_ANY, // GNOME_KEYRING or GNOME_LIBSECRET, whichever is available.
17 GNOME_KEYRING,
18 GNOME_LIBSECRET,
19 KWALLET,
20 KWALLET5,
21 };
22
23 // Decide which backend to target. |command| is checked first. If it does not
Lei Zhang 2016/08/17 14:36:25 Maybe s/command/type/ ?
cfroussios 2016/08/17 15:04:33 Done.
24 // match a supported backend, |desktop_env| will be used to decide.
25 // TODO(crbug/571003): This is exposed as a utility only for password manager to
26 // use. It should be merged in key_storage_linux, once no longer needed in
27 // password manager.
28 SelectedLinuxBackend SelectBackend(const std::string& command,
29 base::nix::DesktopEnvironment desktop_env);
30
31 #endif // COMPONENTS_OS_CRYPT_KEY_STORAGE_UTIL_LINUX_H_
OLDNEW
« no previous file with comments | « components/os_crypt/key_storage_linux.cc ('k') | components/os_crypt/key_storage_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698