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

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

Issue 8483003: Callback API Change: Reimplement Bind(); support IgnoreResult, full currying, and use less types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/net/predictor.cc ('k') | chrome/common/profiling.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « chrome/browser/net/predictor.cc ('k') | chrome/common/profiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698