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

Unified Diff: content/browser/net/url_request_mock_http_job.h

Issue 8493016: content: Remove 16 exit time destructors and 15 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/net/url_request_mock_http_job.h
diff --git a/content/browser/net/url_request_mock_http_job.h b/content/browser/net/url_request_mock_http_job.h
index e2c68f8293553219ce912a3edce24dde52ec2801..a556823eab917a9409cca75dd03a3cb654b6b59d 100644
--- a/content/browser/net/url_request_mock_http_job.h
+++ b/content/browser/net/url_request_mock_http_job.h
@@ -29,10 +29,10 @@ class CONTENT_EXPORT URLRequestMockHTTPJob : public net::URLRequestFileJob {
// Adds the testing URLs to the net::URLRequestFilter.
static void AddUrlHandler(const FilePath& base_path);
- // Given the path to a file relative to base_path_, construct a mock URL.
+ // Given the path to a file relative to BasePath(), construct a mock URL.
static GURL GetMockUrl(const FilePath& path);
- // Given the path to a file relative to base_path_,
+ // Given the path to a file relative to BasePath(),
// construct a mock URL for view source.
static GURL GetMockViewSourceUrl(const FilePath& path);
@@ -48,7 +48,7 @@ class CONTENT_EXPORT URLRequestMockHTTPJob : public net::URLRequestFileJob {
// This is the file path leading to the root of the directory to use as the
// root of the http server.
- static FilePath base_path_;
+ static FilePath& BasePath();
Mark Mentovai 2011/11/07 22:34:15 You’re making this return a non-const reference, a
Nico 2011/11/07 23:29:21 Done.
};
#endif // CONTENT_BROWSER_NET_URL_REQUEST_MOCK_HTTP_JOB_H_

Powered by Google App Engine
This is Rietveld 408576698