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

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

Issue 1592403002: update obsolete code.google.com documentation links (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 (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/password_store_factory.h" 5 #include "chrome/browser/password_manager/password_store_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 used_backend = GNOME_KEYRING; 241 used_backend = GNOME_KEYRING;
242 } else { 242 } else {
243 backend.reset(); 243 backend.reset();
244 } 244 }
245 #endif // defined(USE_GNOME_KEYRING) 245 #endif // defined(USE_GNOME_KEYRING)
246 } 246 }
247 } 247 }
248 248
249 if (!backend.get()) { 249 if (!backend.get()) {
250 LOG(WARNING) << "Using basic (unencrypted) store for password storage. " 250 LOG(WARNING) << "Using basic (unencrypted) store for password storage. "
251 "See http://code.google.com/p/chromium/wiki/LinuxPasswordStorage for " 251 "See "
252 "more information about password storage options."; 252 "https://chromium.googlesource.com/chromium/src/+/master/docs/linux_pass word_storage.md"
253 " for more information about password storage options.";
253 } 254 }
254 255
255 ps = new PasswordStoreX(main_thread_runner, db_thread_runner, 256 ps = new PasswordStoreX(main_thread_runner, db_thread_runner,
256 std::move(login_db), backend.release()); 257 std::move(login_db), backend.release());
257 RecordBackendStatistics(desktop_env, store_type, used_backend); 258 RecordBackendStatistics(desktop_env, store_type, used_backend);
258 #elif defined(USE_OZONE) 259 #elif defined(USE_OZONE)
259 ps = new password_manager::PasswordStoreDefault( 260 ps = new password_manager::PasswordStoreDefault(
260 main_thread_runner, db_thread_runner, login_db.Pass()); 261 main_thread_runner, db_thread_runner, login_db.Pass());
261 #else 262 #else
262 NOTIMPLEMENTED(); 263 NOTIMPLEMENTED();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 break; 352 break;
352 case LIBSECRET: 353 case LIBSECRET:
353 usage = OTHER_LIBSECRET; 354 usage = OTHER_LIBSECRET;
354 break; 355 break;
355 } 356 }
356 } 357 }
357 UMA_HISTOGRAM_ENUMERATION("PasswordManager.LinuxBackendStatistics", usage, 358 UMA_HISTOGRAM_ENUMERATION("PasswordManager.LinuxBackendStatistics", usage,
358 MAX_BACKEND_USAGE_VALUE); 359 MAX_BACKEND_USAGE_VALUE);
359 } 360 }
360 #endif 361 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698