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

Unified Diff: chrome/browser/password_manager/keyring_proxy/keyring_proxy_main.cc

Issue 8509038: Linux: split GNOME Keyring integration into a separate process. Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: merge Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/keyring_proxy/keyring_proxy_main.cc
===================================================================
--- chrome/browser/password_manager/keyring_proxy/keyring_proxy_main.cc (revision 0)
+++ chrome/browser/password_manager/keyring_proxy/keyring_proxy_main.cc (revision 0)
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <glib-object.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "chrome/browser/password_manager/keyring_proxy/keyring_proxy.h"
+
+int main(int argc, char* argv[]) {
+ g_type_init();
+
+ char* slash = strrchr(argv[0], '/');
+ if (slash)
+ g_set_application_name(&slash[1]);
+ else
+ g_set_application_name(argv[0]);
+
+ keyring_proxy::KeyringProxy proxy(STDIN_FILENO, stdout);
+ if (!proxy.Init())
+ return 1;
+ proxy.Run();
+
+ return 0;
+}
Property changes on: chrome/browser/password_manager/keyring_proxy/keyring_proxy_main.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698