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

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

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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 | Annotate | Revision Log
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
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/stl_util-inl.h" 12 #include "base/stl_util.h"
13 #include "chrome/browser/password_manager/password_store_change.h" 13 #include "chrome/browser/password_manager/password_store_change.h"
14 #include "chrome/browser/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "content/browser/browser_thread.h" 16 #include "content/browser/browser_thread.h"
17 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
18 #include "content/common/notification_service.h" 18 #include "content/common/notification_service.h"
19 19
20 using std::vector; 20 using std::vector;
21 using webkit_glue::PasswordForm; 21 using webkit_glue::PasswordForm;
22 22
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 // static 295 // static
296 void PasswordStoreX::SetPasswordsUseLocalProfileId(PrefService* prefs) { 296 void PasswordStoreX::SetPasswordsUseLocalProfileId(PrefService* prefs) {
297 // This method should work on any thread, but we expect the DB thread. 297 // This method should work on any thread, but we expect the DB thread.
298 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 298 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
299 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 299 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
300 NewRunnableFunction(UISetPasswordsUseLocalProfileId, 300 NewRunnableFunction(UISetPasswordsUseLocalProfileId,
301 prefs)); 301 prefs));
302 } 302 }
303 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) 303 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698