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

Side by Side Diff: chrome/browser/internal_auth.cc

Issue 8430019: Make LazyInstance managed Locks leaky. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « base/mime_util_xdg.cc ('k') | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/internal_auth.h" 5 #include "chrome/browser/internal_auth.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 DISALLOW_COPY_AND_ASSIGN(InternalAuthVerificationService); 320 DISALLOW_COPY_AND_ASSIGN(InternalAuthVerificationService);
321 }; 321 };
322 322
323 } // namespace browser 323 } // namespace browser
324 324
325 namespace { 325 namespace {
326 326
327 static base::LazyInstance<browser::InternalAuthVerificationService> 327 static base::LazyInstance<browser::InternalAuthVerificationService>
328 g_verification_service(base::LINKER_INITIALIZED); 328 g_verification_service(base::LINKER_INITIALIZED);
329 static base::LazyInstance<base::Lock> g_verification_service_lock( 329 static base::LazyInstance<base::Lock,
330 base::LINKER_INITIALIZED); 330 base::LeakyLazyInstanceTraits<base::Lock> >
331 g_verification_service_lock(base::LINKER_INITIALIZED);
331 332
332 } // namespace 333 } // namespace
333 334
334 namespace browser { 335 namespace browser {
335 336
336 class InternalAuthGenerationService : public base::ThreadChecker { 337 class InternalAuthGenerationService : public base::ThreadChecker {
337 public: 338 public:
338 InternalAuthGenerationService() : key_regeneration_tick_(0) { 339 InternalAuthGenerationService() : key_regeneration_tick_(0) {
339 GenerateNewKey(); 340 GenerateNewKey();
340 } 341 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 const std::string& domain, const VarValueMap& var_value_map) { 471 const std::string& domain, const VarValueMap& var_value_map) {
471 return g_generation_service.Get().GeneratePassport(domain, var_value_map, 0); 472 return g_generation_service.Get().GeneratePassport(domain, var_value_map, 0);
472 } 473 }
473 474
474 // static 475 // static
475 void InternalAuthGeneration::GenerateNewKey() { 476 void InternalAuthGeneration::GenerateNewKey() {
476 g_generation_service.Get().GenerateNewKey(); 477 g_generation_service.Get().GenerateNewKey();
477 } 478 }
478 479
479 } // namespace browser 480 } // namespace browser
480
OLDNEW
« no previous file with comments | « base/mime_util_xdg.cc ('k') | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698