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

Side by Side Diff: chrome/common/chrome_paths.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
« no previous file with comments | « chrome/browser/usb/usb_blocklist.h ('k') | chrome/common/extensions/chrome_extensions_client.h » ('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) 2012 The Chromium Authors. All rights reserved. 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 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/common/chrome_paths.h" 5 #include "chrome/common/chrome_paths.h"
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // where it can find the latest component updated flash. 65 // where it can find the latest component updated flash.
66 const base::FilePath::CharType kComponentUpdatedFlashHint[] = 66 const base::FilePath::CharType kComponentUpdatedFlashHint[] =
67 FILE_PATH_LITERAL("latest-component-updated-flash"); 67 FILE_PATH_LITERAL("latest-component-updated-flash");
68 #endif // defined(OS_LINUX) 68 #endif // defined(OS_LINUX)
69 69
70 #if defined(OS_CHROMEOS) 70 #if defined(OS_CHROMEOS)
71 const base::FilePath::CharType kChromeOSComponentFlash[] = FILE_PATH_LITERAL( 71 const base::FilePath::CharType kChromeOSComponentFlash[] = FILE_PATH_LITERAL(
72 "/run/imageloader/PepperFlashPlayer/libpepflashplayer.so"); 72 "/run/imageloader/PepperFlashPlayer/libpepflashplayer.so");
73 #endif // defined(OS_CHROMEOS) 73 #endif // defined(OS_CHROMEOS)
74 74
75 static base::LazyInstance<base::FilePath> 75 static base::LazyInstance<base::FilePath>::DestructorAtExit
76 g_invalid_specified_user_data_dir = LAZY_INSTANCE_INITIALIZER; 76 g_invalid_specified_user_data_dir = LAZY_INSTANCE_INITIALIZER;
77 77
78 // Gets the path for internal plugins. 78 // Gets the path for internal plugins.
79 bool GetInternalPluginsDirectory(base::FilePath* result) { 79 bool GetInternalPluginsDirectory(base::FilePath* result) {
80 #if defined(OS_MACOSX) 80 #if defined(OS_MACOSX)
81 // If called from Chrome, get internal plugins from a subdirectory of the 81 // If called from Chrome, get internal plugins from a subdirectory of the
82 // framework. 82 // framework.
83 if (base::mac::AmIBundled()) { 83 if (base::mac::AmIBundled()) {
84 *result = chrome::GetFrameworkBundlePath(); 84 *result = chrome::GetFrameworkBundlePath();
85 DCHECK(!result->empty()); 85 DCHECK(!result->empty());
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 600
601 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { 601 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) {
602 g_invalid_specified_user_data_dir.Get() = user_data_dir; 602 g_invalid_specified_user_data_dir.Get() = user_data_dir;
603 } 603 }
604 604
605 const base::FilePath& GetInvalidSpecifiedUserDataDir() { 605 const base::FilePath& GetInvalidSpecifiedUserDataDir() {
606 return g_invalid_specified_user_data_dir.Get(); 606 return g_invalid_specified_user_data_dir.Get();
607 } 607 }
608 608
609 } // namespace chrome 609 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/usb/usb_blocklist.h ('k') | chrome/common/extensions/chrome_extensions_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698