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

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

Issue 3071012: Cleanup: Remove unneeded headers from base/ (part 1) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_internal.h" 5 #include "chrome/common/chrome_paths_internal.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <knownfolders.h> 8 #include <knownfolders.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #include <shlobj.h> 10 #include <shlobj.h>
11 #include <shobjidl.h> 11 #include <shobjidl.h>
12 12
13 #include "app/win_util.h" 13 #include "app/win_util.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/scoped_comptr_win.h"
17 #include "chrome/common/chrome_constants.h" 16 #include "chrome/common/chrome_constants.h"
18 #include "chrome/installer/util/browser_distribution.h" 17 #include "chrome/installer/util/browser_distribution.h"
19 18
20 namespace chrome { 19 namespace chrome {
21 20
22 bool GetDefaultUserDataDirectory(FilePath* result) { 21 bool GetDefaultUserDataDirectory(FilePath* result) {
23 if (!PathService::Get(base::DIR_LOCAL_APP_DATA, result)) 22 if (!PathService::Get(base::DIR_LOCAL_APP_DATA, result))
24 return false; 23 return false;
25 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); 24 BrowserDistribution* dist = BrowserDistribution::GetDistribution();
26 *result = result->Append(dist->GetInstallSubDir()); 25 *result = result->Append(dist->GetInstallSubDir());
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 wchar_t system_buffer[MAX_PATH]; 84 wchar_t system_buffer[MAX_PATH];
86 system_buffer[0] = 0; 85 system_buffer[0] = 0;
87 if (FAILED(SHGetFolderPath(NULL, CSIDL_DESKTOPDIRECTORY, NULL, 86 if (FAILED(SHGetFolderPath(NULL, CSIDL_DESKTOPDIRECTORY, NULL,
88 SHGFP_TYPE_CURRENT, system_buffer))) 87 SHGFP_TYPE_CURRENT, system_buffer)))
89 return false; 88 return false;
90 *result = FilePath(system_buffer); 89 *result = FilePath(system_buffer);
91 return true; 90 return true;
92 } 91 }
93 92
94 } // namespace chrome 93 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/views/tab_contents/tab_contents_view_win.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698