| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 #include "dbus/bus.h" | 16 #include "dbus/bus.h" |
| 17 #include "dbus/message.h" | 17 #include "dbus/message.h" |
| 18 #include "dbus/object_proxy.h" | 18 #include "dbus/object_proxy.h" |
| 19 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 | 21 |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 using webkit_glue::PasswordForm; | 23 using webkit::forms::PasswordForm; |
| 24 | 24 |
| 25 // We could localize this string, but then changing your locale would cause | 25 // We could localize this string, but then changing your locale would cause |
| 26 // you to lose access to all your stored passwords. Maybe best not to do that. | 26 // you to lose access to all your stored passwords. Maybe best not to do that. |
| 27 const char NativeBackendKWallet::kKWalletFolder[] = "Chrome Form Data"; | 27 const char NativeBackendKWallet::kKWalletFolder[] = "Chrome Form Data"; |
| 28 | 28 |
| 29 const char NativeBackendKWallet::kKWalletServiceName[] = "org.kde.kwalletd"; | 29 const char NativeBackendKWallet::kKWalletServiceName[] = "org.kde.kwalletd"; |
| 30 const char NativeBackendKWallet::kKWalletPath[] = "/modules/kwalletd"; | 30 const char NativeBackendKWallet::kKWalletPath[] = "/modules/kwalletd"; |
| 31 const char NativeBackendKWallet::kKWalletInterface[] = "org.kde.KWallet"; | 31 const char NativeBackendKWallet::kKWalletInterface[] = "org.kde.KWallet"; |
| 32 const char NativeBackendKWallet::kKLauncherServiceName[] = "org.kde.klauncher"; | 32 const char NativeBackendKWallet::kKLauncherServiceName[] = "org.kde.klauncher"; |
| 33 const char NativeBackendKWallet::kKLauncherPath[] = "/KLauncher"; | 33 const char NativeBackendKWallet::kKLauncherPath[] = "/KLauncher"; |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 // Each other profile must be able to migrate the shared data as well, | 887 // Each other profile must be able to migrate the shared data as well, |
| 888 // so we must leave it alone. After a few releases, we'll add code to | 888 // so we must leave it alone. After a few releases, we'll add code to |
| 889 // delete them, and eventually remove this migration code. | 889 // delete them, and eventually remove this migration code. |
| 890 // TODO(mdm): follow through with the plan above. | 890 // TODO(mdm): follow through with the plan above. |
| 891 PasswordStoreX::SetPasswordsUseLocalProfileId(prefs_); | 891 PasswordStoreX::SetPasswordsUseLocalProfileId(prefs_); |
| 892 } else { | 892 } else { |
| 893 // We failed to migrate for some reason. Use the old folder name. | 893 // We failed to migrate for some reason. Use the old folder name. |
| 894 folder_name_ = kKWalletFolder; | 894 folder_name_ = kKWalletFolder; |
| 895 } | 895 } |
| 896 } | 896 } |
| OLD | NEW |