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

Side by Side Diff: chrome/browser/extensions/extension_resource_protocols.cc

Issue 10383272: Coverity: Initialize a member variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | no next file » | 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 "chrome/browser/extensions/extension_resource_protocols.h" 5 #include "chrome/browser/extensions/extension_resource_protocols.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "chrome/common/chrome_paths.h" 9 #include "chrome/common/chrome_paths.h"
10 #include "chrome/common/extensions/extension_file_util.h" 10 #include "chrome/common/extensions/extension_file_util.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "net/url_request/url_request_file_job.h" 12 #include "net/url_request/url_request_file_job.h"
13 13
14 namespace { 14 namespace {
15 15
16 class ExtensionResourcesJob : public net::URLRequestFileJob { 16 class ExtensionResourcesJob : public net::URLRequestFileJob {
17 public: 17 public:
18 explicit ExtensionResourcesJob(net::URLRequest* request) 18 explicit ExtensionResourcesJob(net::URLRequest* request)
19 : net::URLRequestFileJob(request, FilePath()) { } 19 : net::URLRequestFileJob(request, FilePath()),
20 thread_id_(content::BrowserThread::UI) {
21 }
20 22
21 virtual void Start() OVERRIDE; 23 virtual void Start() OVERRIDE;
22 24
23 protected: 25 protected:
24 ~ExtensionResourcesJob() { } 26 ~ExtensionResourcesJob() {}
25 27
26 void ResolvePath(); 28 void ResolvePath();
27 void ResolvePathDone(); 29 void ResolvePathDone();
28 30
29 private: 31 private:
30 content::BrowserThread::ID thread_id_; 32 content::BrowserThread::ID thread_id_;
31 }; 33 };
32 34
33 void ExtensionResourcesJob::Start() { 35 void ExtensionResourcesJob::Start() {
34 bool result = 36 bool result =
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 net::URLRequest* request) const { 74 net::URLRequest* request) const {
73 return new ExtensionResourcesJob(request); 75 return new ExtensionResourcesJob(request);
74 } 76 }
75 77
76 } // namespace 78 } // namespace
77 79
78 net::URLRequestJobFactory::ProtocolHandler* 80 net::URLRequestJobFactory::ProtocolHandler*
79 CreateExtensionResourceProtocolHandler() { 81 CreateExtensionResourceProtocolHandler() {
80 return new ExtensionResourceProtocolHandler(); 82 return new ExtensionResourceProtocolHandler();
81 } 83 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698