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

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

Issue 2468063003: Initial hookup of PpdProvider. (Closed)
Patch Set: string -> const string& Created 4 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
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | no next file » | 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/mac/bundle_locations.h" 10 #include "base/mac/bundle_locations.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 case chrome::DIR_CHROMEOS_WALLPAPER_THUMBNAILS: 424 case chrome::DIR_CHROMEOS_WALLPAPER_THUMBNAILS:
425 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) 425 if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
426 return false; 426 return false;
427 cur = cur.Append(FILE_PATH_LITERAL("wallpaper_thumbnails")); 427 cur = cur.Append(FILE_PATH_LITERAL("wallpaper_thumbnails"));
428 break; 428 break;
429 case chrome::DIR_CHROMEOS_CUSTOM_WALLPAPERS: 429 case chrome::DIR_CHROMEOS_CUSTOM_WALLPAPERS:
430 if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) 430 if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
431 return false; 431 return false;
432 cur = cur.Append(FILE_PATH_LITERAL("custom_wallpapers")); 432 cur = cur.Append(FILE_PATH_LITERAL("custom_wallpapers"));
433 break; 433 break;
434 case chrome::DIR_CHROMEOS_PPD_CACHE:
435 if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
436 return false;
437 cur = cur.Append(FILE_PATH_LITERAL("ppd_cache"));
438 break;
434 #endif 439 #endif
435 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) 440 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
436 #if defined(OS_LINUX) 441 #if defined(OS_LINUX)
437 case chrome::DIR_SUPERVISED_USERS_DEFAULT_APPS: 442 case chrome::DIR_SUPERVISED_USERS_DEFAULT_APPS:
438 if (!PathService::Get(chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, &cur)) 443 if (!PathService::Get(chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, &cur))
439 return false; 444 return false;
440 cur = cur.Append(FILE_PATH_LITERAL("managed_users")); 445 cur = cur.Append(FILE_PATH_LITERAL("managed_users"));
441 break; 446 break;
442 #endif 447 #endif
443 case chrome::DIR_SUPERVISED_USER_INSTALLED_WHITELISTS: 448 case chrome::DIR_SUPERVISED_USER_INSTALLED_WHITELISTS:
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 612
608 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { 613 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) {
609 g_invalid_specified_user_data_dir.Get() = user_data_dir; 614 g_invalid_specified_user_data_dir.Get() = user_data_dir;
610 } 615 }
611 616
612 const base::FilePath& GetInvalidSpecifiedUserDataDir() { 617 const base::FilePath& GetInvalidSpecifiedUserDataDir() {
613 return g_invalid_specified_user_data_dir.Get(); 618 return g_invalid_specified_user_data_dir.Get();
614 } 619 }
615 620
616 } // namespace chrome 621 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698