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

Side by Side Diff: chrome/browser/intents/cws_intents_registry.cc

Issue 9433059: Coverity: Fix uninitialized member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | chrome/browser/prerender/prerender_resource_throttle.h » ('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 "chrome/browser/intents/cws_intents_registry.h" 5 #include "chrome/browser/intents/cws_intents_registry.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/json/json_value_serializer.h" 8 #include "base/json/json_value_serializer.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Internal object representing all data associated with a single query. 29 // Internal object representing all data associated with a single query.
30 struct CWSIntentsRegistry::IntentsQuery { 30 struct CWSIntentsRegistry::IntentsQuery {
31 // Underlying URL request query. 31 // Underlying URL request query.
32 scoped_ptr<content::URLFetcher> url_fetcher_; 32 scoped_ptr<content::URLFetcher> url_fetcher_;
33 33
34 // The callback - invoked on completed retrieval. 34 // The callback - invoked on completed retrieval.
35 ResultsCallback callback_; 35 ResultsCallback callback_;
36 }; 36 };
37 37
38 CWSIntentsRegistry::IntentExtensionInfo::IntentExtensionInfo() { 38 CWSIntentsRegistry::IntentExtensionInfo::IntentExtensionInfo()
39 : num_ratings(0),
40 average_rating(0) {
39 } 41 }
40 42
41 CWSIntentsRegistry::IntentExtensionInfo::~IntentExtensionInfo() { 43 CWSIntentsRegistry::IntentExtensionInfo::~IntentExtensionInfo() {
42 } 44 }
43 45
44 CWSIntentsRegistry::CWSIntentsRegistry(net::URLRequestContextGetter* context) 46 CWSIntentsRegistry::CWSIntentsRegistry(net::URLRequestContextGetter* context)
45 : request_context_(context) { 47 : request_context_(context) {
46 } 48 }
47 49
48 CWSIntentsRegistry::~CWSIntentsRegistry() { 50 CWSIntentsRegistry::~CWSIntentsRegistry() {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 150
149 // static 151 // static
150 GURL CWSIntentsRegistry::BuildQueryURL(const string16& action, 152 GURL CWSIntentsRegistry::BuildQueryURL(const string16& action,
151 const string16& type) { 153 const string16& type) {
152 GURL request(kCWSIntentServiceURL); 154 GURL request(kCWSIntentServiceURL);
153 request = chrome_browser_net::AppendQueryParameter(request, "intent", 155 request = chrome_browser_net::AppendQueryParameter(request, "intent",
154 UTF16ToUTF8(action)); 156 UTF16ToUTF8(action));
155 return chrome_browser_net::AppendQueryParameter(request, "mime_types", 157 return chrome_browser_net::AppendQueryParameter(request, "mime_types",
156 UTF16ToUTF8(type)); 158 UTF16ToUTF8(type));
157 } 159 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_resource_throttle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698