OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include <glib-object.h> |
| 6 #include <stdio.h> |
| 7 #include <string.h> |
| 8 |
| 9 #include "chrome/browser/password_manager/keyring_proxy/keyring_proxy.h" |
| 10 |
| 11 int main(int argc, char* argv[]) { |
| 12 g_type_init(); |
| 13 |
| 14 char* slash = strrchr(argv[0], '/'); |
| 15 if (slash) |
| 16 g_set_application_name(&slash[1]); |
| 17 else |
| 18 g_set_application_name(argv[0]); |
| 19 |
| 20 keyring_proxy::KeyringProxy proxy(STDIN_FILENO, stdout); |
| 21 if (!proxy.Init()) |
| 22 return 1; |
| 23 proxy.Run(); |
| 24 |
| 25 return 0; |
| 26 } |
OLD | NEW |