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

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

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_gnome_x.h" 5 #include "chrome/browser/password_manager/native_backend_gnome_x.h"
6 6
7 #include <dbus/dbus-glib.h> 7 #include <dbus/dbus-glib.h>
8 #include <dlfcn.h> 8 #include <dlfcn.h>
9 #include <gnome-keyring.h> 9 #include <gnome-keyring.h>
10 10
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/string_number_conversions.h" 16 #include "base/string_number_conversions.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "base/utf_string_conversions.h" 19 #include "base/utf_string_conversions.h"
20 #include "base/waitable_event.h" 20 #include "base/synchronization/waitable_event.h"
21 #include "chrome/browser/browser_thread.h" 21 #include "chrome/browser/browser_thread.h"
22 22
23 using webkit_glue::PasswordForm; 23 using webkit_glue::PasswordForm;
24 24
25 namespace { 25 namespace {
26 26
27 // Many of the gnome_keyring_* functions use variable arguments, which makes 27 // Many of the gnome_keyring_* functions use variable arguments, which makes
28 // them difficult if not impossible to wrap in C. Therefore, we want the 28 // them difficult if not impossible to wrap in C. Therefore, we want the
29 // actual uses below to either call the functions directly (if we are linking 29 // actual uses below to either call the functions directly (if we are linking
30 // against libgnome-keyring), or call them via appropriately-typed function 30 // against libgnome-keyring), or call them via appropriately-typed function
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 } 815 }
816 } else { 816 } else {
817 // Otherwise, free them. 817 // Otherwise, free them.
818 for (size_t i = 0; i < item_ids.size(); ++i) 818 for (size_t i = 0; i < item_ids.size(); ++i)
819 delete all_forms[i]; 819 delete all_forms[i];
820 } 820 }
821 821
822 return success; 822 return success;
823 #endif 823 #endif
824 } 824 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698