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

Side by Side Diff: chrome/browser/password_manager/native_backend_kwallet_x.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/password_manager/native_backend_kwallet_x.h" 5 #include "chrome/browser/password_manager/native_backend_kwallet_x.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/pickle.h" 11 #include "base/pickle.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "base/threading/thread_restrictions.h" 15 #include "base/threading/thread_restrictions.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "dbus/bus.h" 17 #include "dbus/bus.h"
18 #include "dbus/message.h" 18 #include "dbus/message.h"
19 #include "dbus/object_path.h" 19 #include "dbus/object_path.h"
20 #include "dbus/object_proxy.h" 20 #include "dbus/object_proxy.h"
21 #include "grit/chromium_strings.h" 21 #include "grit/chromium_strings.h"
22 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
23 23
24 using content::BrowserThread; 24 using content::BrowserThread;
25 using webkit::forms::PasswordForm; 25 using content::PasswordForm;
26 26
27 // We could localize this string, but then changing your locale would cause 27 // We could localize this string, but then changing your locale would cause
28 // you to lose access to all your stored passwords. Maybe best not to do that. 28 // you to lose access to all your stored passwords. Maybe best not to do that.
29 const char NativeBackendKWallet::kKWalletFolder[] = "Chrome Form Data"; 29 const char NativeBackendKWallet::kKWalletFolder[] = "Chrome Form Data";
30 30
31 const char NativeBackendKWallet::kKWalletServiceName[] = "org.kde.kwalletd"; 31 const char NativeBackendKWallet::kKWalletServiceName[] = "org.kde.kwalletd";
32 const char NativeBackendKWallet::kKWalletPath[] = "/modules/kwalletd"; 32 const char NativeBackendKWallet::kKWalletPath[] = "/modules/kwalletd";
33 const char NativeBackendKWallet::kKWalletInterface[] = "org.kde.KWallet"; 33 const char NativeBackendKWallet::kKWalletInterface[] = "org.kde.KWallet";
34 const char NativeBackendKWallet::kKLauncherServiceName[] = "org.kde.klauncher"; 34 const char NativeBackendKWallet::kKLauncherServiceName[] = "org.kde.klauncher";
35 const char NativeBackendKWallet::kKLauncherPath[] = "/KLauncher"; 35 const char NativeBackendKWallet::kKLauncherPath[] = "/KLauncher";
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 // Each other profile must be able to migrate the shared data as well, 945 // Each other profile must be able to migrate the shared data as well,
946 // so we must leave it alone. After a few releases, we'll add code to 946 // so we must leave it alone. After a few releases, we'll add code to
947 // delete them, and eventually remove this migration code. 947 // delete them, and eventually remove this migration code.
948 // TODO(mdm): follow through with the plan above. 948 // TODO(mdm): follow through with the plan above.
949 PasswordStoreX::SetPasswordsUseLocalProfileId(prefs_); 949 PasswordStoreX::SetPasswordsUseLocalProfileId(prefs_);
950 } else { 950 } else {
951 // We failed to migrate for some reason. Use the old folder name. 951 // We failed to migrate for some reason. Use the old folder name.
952 folder_name_ = kKWalletFolder; 952 folder_name_ = kKWalletFolder;
953 } 953 }
954 } 954 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698