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

Side by Side Diff: chrome/common/chrome_paths_internal.h

Issue 10539153: Do not show the EULA if it has already been accepted by the user in another user data dir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DIR_ALT_USER_DATA is windows only Created 8 years, 6 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
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | chrome/common/chrome_paths_unittest.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) 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 #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 5 #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 12
13 #if defined(OS_MACOSX) 13 #if defined(OS_MACOSX)
14 #if defined(__OBJC__) 14 #if defined(__OBJC__)
15 @class NSBundle; 15 @class NSBundle;
16 #else 16 #else
17 class NSBundle; 17 class NSBundle;
18 #endif 18 #endif
19 #endif 19 #endif
20 20
21 class FilePath; 21 class FilePath;
22 22
23 namespace chrome { 23 namespace chrome {
24 24
25 // Get the path to the user's data directory, regardless of whether 25 // Get the path to the user's data directory, regardless of whether
26 // DIR_USER_DATA has been overridden by a command-line option. 26 // DIR_USER_DATA has been overridden by a command-line option.
27 bool GetDefaultUserDataDirectory(FilePath* result); 27 bool GetDefaultUserDataDirectory(FilePath* result);
28 28
29 #if defined(OS_WIN)
30 // Gets the path to the user data directory for the alternate environment to
31 // the one in use (metro or desktop).
32 bool GetAlternateUserDataDirectory(FilePath *result);
33 #endif
34
29 // This returns the base directory in which Chrome Frame stores user profiles. 35 // This returns the base directory in which Chrome Frame stores user profiles.
30 // Note that this cannot be wrapped in a preprocessor define since 36 // Note that this cannot be wrapped in a preprocessor define since
31 // CF and Google Chrome want to share the same binaries. 37 // CF and Google Chrome want to share the same binaries.
32 bool GetChromeFrameUserDataDirectory(FilePath* result); 38 bool GetChromeFrameUserDataDirectory(FilePath* result);
33 39
34 // Get the path to the user's cache directory. This is normally the 40 // Get the path to the user's cache directory. This is normally the
35 // same as the profile directory, but on Linux it can also be 41 // same as the profile directory, but on Linux it can also be
36 // $XDG_CACHE_HOME and on Mac it can be under ~/Library/Caches. 42 // $XDG_CACHE_HOME and on Mac it can be under ~/Library/Caches.
37 // Note that the Chrome cache directories are actually subdirectories 43 // Note that the Chrome cache directories are actually subdirectories
38 // of this directory, with names like "Cache" and "Media Cache". 44 // of this directory, with names like "Cache" and "Media Cache".
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 NSBundle* OuterAppBundle(); 95 NSBundle* OuterAppBundle();
90 96
91 #endif // OS_MACOSX 97 #endif // OS_MACOSX
92 98
93 // Checks if the |process_type| has the rights to access the profile. 99 // Checks if the |process_type| has the rights to access the profile.
94 bool ProcessNeedsProfileDir(const std::string& process_type); 100 bool ProcessNeedsProfileDir(const std::string& process_type);
95 101
96 } // namespace chrome 102 } // namespace chrome
97 103
98 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 104 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | chrome/common/chrome_paths_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698