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

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

Issue 375973003: Componentize component_updater: Use Configurator to build query parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix one gyp omission Created 6 years, 5 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
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/file_util.h" 7 #include "base/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/mac/bundle_locations.h" 10 #include "base/mac/bundle_locations.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/sys_info.h" 13 #include "base/sys_info.h"
14 #include "base/threading/thread_restrictions.h" 14 #include "base/threading/thread_restrictions.h"
15 #include "base/version.h" 15 #include "base/version.h"
16 #include "chrome/common/chrome_constants.h" 16 #include "chrome/common/chrome_constants.h"
17 #include "chrome/common/chrome_paths_internal.h" 17 #include "chrome/common/chrome_paths_internal.h"
18 #include "chrome/common/widevine_cdm_constants.h" 18 #include "chrome/common/widevine_cdm_constants.h"
19 #include "components/component_updater/component_updater_constants.h"
19 #include "ui/base/ui_base_paths.h" 20 #include "ui/base/ui_base_paths.h"
20 21
21 #if defined(OS_ANDROID) 22 #if defined(OS_ANDROID)
22 #include "base/android/path_utils.h" 23 #include "base/android/path_utils.h"
23 #endif 24 #endif
24 25
25 #if defined(OS_MACOSX) 26 #if defined(OS_MACOSX)
26 #include "base/mac/foundation_util.h" 27 #include "base/mac/foundation_util.h"
27 #endif 28 #endif
28 29
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 cur = cur.Append(FILE_PATH_LITERAL("script.log")); 293 cur = cur.Append(FILE_PATH_LITERAL("script.log"));
293 break; 294 break;
294 case chrome::FILE_FLASH_PLUGIN: 295 case chrome::FILE_FLASH_PLUGIN:
295 if (!GetInternalPluginsDirectory(&cur)) 296 if (!GetInternalPluginsDirectory(&cur))
296 return false; 297 return false;
297 cur = cur.Append(kInternalFlashPluginFileName); 298 cur = cur.Append(kInternalFlashPluginFileName);
298 break; 299 break;
299 case chrome::FILE_PEPPER_FLASH_PLUGIN: 300 case chrome::FILE_PEPPER_FLASH_PLUGIN:
300 if (!PathService::Get(chrome::DIR_PEPPER_FLASH_PLUGIN, &cur)) 301 if (!PathService::Get(chrome::DIR_PEPPER_FLASH_PLUGIN, &cur))
301 return false; 302 return false;
302 cur = cur.Append(chrome::kPepperFlashPluginFilename); 303 cur = cur.Append(component_updater::kPepperFlashPluginFilename);
303 break; 304 break;
304 case chrome::FILE_PDF_PLUGIN: 305 case chrome::FILE_PDF_PLUGIN:
305 if (!GetInternalPluginsDirectory(&cur)) 306 if (!GetInternalPluginsDirectory(&cur))
306 return false; 307 return false;
307 cur = cur.Append(kInternalPDFPluginFileName); 308 cur = cur.Append(kInternalPDFPluginFileName);
308 break; 309 break;
309 case chrome::FILE_EFFECTS_PLUGIN: 310 case chrome::FILE_EFFECTS_PLUGIN:
310 if (!GetInternalPluginsDirectory(&cur)) 311 if (!GetInternalPluginsDirectory(&cur))
311 return false; 312 return false;
312 cur = cur.Append(kEffectsPluginFileName); 313 cur = cur.Append(kEffectsPluginFileName);
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 597
597 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { 598 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) {
598 g_invalid_specified_user_data_dir.Get() = user_data_dir; 599 g_invalid_specified_user_data_dir.Get() = user_data_dir;
599 } 600 }
600 601
601 const base::FilePath& GetInvalidSpecifiedUserDataDir() { 602 const base::FilePath& GetInvalidSpecifiedUserDataDir() {
602 return g_invalid_specified_user_data_dir.Get(); 603 return g_invalid_specified_user_data_dir.Get();
603 } 604 }
604 605
605 } // namespace chrome 606 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698