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

Side by Side Diff: base/base_paths_win.cc

Issue 9316077: Enable audio/video tag in content_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment; PathServiceTest.Get test still fails on mac Created 8 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 | 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 "base/base_paths_win.h" 5 #include "base/base_paths_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 cur = FilePath(system_buffer); 112 cur = FilePath(system_buffer);
113 break; 113 break;
114 case base::DIR_SOURCE_ROOT: { 114 case base::DIR_SOURCE_ROOT: {
115 FilePath executableDir; 115 FilePath executableDir;
116 // On Windows, unit tests execute two levels deep from the source root. 116 // On Windows, unit tests execute two levels deep from the source root.
117 // For example: chrome/{Debug|Release}/ui_tests.exe 117 // For example: chrome/{Debug|Release}/ui_tests.exe
118 PathService::Get(base::DIR_EXE, &executableDir); 118 PathService::Get(base::DIR_EXE, &executableDir);
119 cur = executableDir.DirName().DirName(); 119 cur = executableDir.DirName().DirName();
120 break; 120 break;
121 } 121 }
122 case base::DIR_MEDIA_LIBS: {
123 if (!PathService::Get(base::DIR_MODULE, result))
124 return false;
125 return true;
126 }
122 default: 127 default:
123 return false; 128 return false;
124 } 129 }
125 130
126 *result = cur; 131 *result = cur;
127 return true; 132 return true;
128 } 133 }
129 134
130 } // namespace base 135 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698