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

Side by Side Diff: content/test/test_content_browser_client.cc

Issue 12208057: Add explicit base to FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « content/test/test_content_browser_client.h ('k') | content/test/test_content_client.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 #include "content/test/test_content_browser_client.h" 5 #include "content/test/test_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 13 matching lines...) Expand all
24 RenderViewHostDelegateView** render_view_host_delegate_view) { 24 RenderViewHostDelegateView** render_view_host_delegate_view) {
25 #if defined(OS_IOS) 25 #if defined(OS_IOS)
26 return NULL; 26 return NULL;
27 #else 27 #else
28 TestWebContentsView* rv = new TestWebContentsView; 28 TestWebContentsView* rv = new TestWebContentsView;
29 *render_view_host_delegate_view = rv; 29 *render_view_host_delegate_view = rv;
30 return rv; 30 return rv;
31 #endif 31 #endif
32 } 32 }
33 33
34 FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { 34 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() {
35 if (!download_dir_.IsValid()) { 35 if (!download_dir_.IsValid()) {
36 bool result = download_dir_.CreateUniqueTempDir(); 36 bool result = download_dir_.CreateUniqueTempDir();
37 CHECK(result); 37 CHECK(result);
38 } 38 }
39 return download_dir_.path(); 39 return download_dir_.path();
40 } 40 }
41 41
42 } // namespace content 42 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_content_browser_client.h ('k') | content/test/test_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698