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

Side by Side Diff: crypto/ec_signature_creator.cc

Issue 9455006: Fix SpdySession::WriteCredentialFrame ECPrivateKey creation args. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgot add Created 8 years, 10 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
(Empty)
1 // Copyright (c) 2012 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 "crypto/ec_signature_creator.h"
6
7 namespace crypto {
8
9 namespace {
10
11 ECSignatureCreatorFactory* g_factory_ = NULL;
Ryan Hamilton 2012/02/23 04:36:12 I was going to recommend that you move this to the
12
13 } // namespace
14
15 // static
16 ECSignatureCreator* ECSignatureCreator::Create(ECPrivateKey* key) {
17 if (g_factory_)
18 return g_factory_->Create(key);
19 return CreatePlatformImpl(key);
20 }
21
22 // static
23 void ECSignatureCreator::SetFactoryForTesting(
24 ECSignatureCreatorFactory* factory) {
25 g_factory_ = factory;
26 }
27
28 } // namespace crypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698