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/password_store_x.h" | 5 #include "chrome/browser/password_manager/password_store_x.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 void UISetPasswordsUseLocalProfileId(PrefService* prefs) { | 292 void UISetPasswordsUseLocalProfileId(PrefService* prefs) { |
293 prefs->SetBoolean(prefs::kPasswordsUseLocalProfileId, true); | 293 prefs->SetBoolean(prefs::kPasswordsUseLocalProfileId, true); |
294 } | 294 } |
295 } // anonymous namespace | 295 } // anonymous namespace |
296 | 296 |
297 // static | 297 // static |
298 void PasswordStoreX::SetPasswordsUseLocalProfileId(PrefService* prefs) { | 298 void PasswordStoreX::SetPasswordsUseLocalProfileId(PrefService* prefs) { |
299 // This method should work on any thread, but we expect the DB thread. | 299 // This method should work on any thread, but we expect the DB thread. |
300 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); | 300 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); |
301 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 301 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
302 base::Bind(UISetPasswordsUseLocalProfileId, prefs)); | 302 base::Bind(&UISetPasswordsUseLocalProfileId, prefs)); |
303 } | 303 } |
304 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 304 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
OLD | NEW |