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

Unified Diff: chrome/browser/search/suggestions/suggestions_source.cc

Issue 731373002: Enable MSVC warning for unused locals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 6 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: chrome/browser/search/suggestions/suggestions_source.cc
diff --git a/chrome/browser/search/suggestions/suggestions_source.cc b/chrome/browser/search/suggestions/suggestions_source.cc
index a79589ad2995e64dfd7b5a9a29867cfbd967ebf2..e00b5126e4a4fb7e966dbbe9b06feb439979f51f 100644
--- a/chrome/browser/search/suggestions/suggestions_source.cc
+++ b/chrome/browser/search/suggestions/suggestions_source.cc
@@ -116,11 +116,8 @@ std::string SuggestionsSource::GetSource() const {
void SuggestionsSource::StartDataRequest(
const std::string& path, int render_process_id, int render_frame_id,
const content::URLDataSource::GotDataCallback& callback) {
- SuggestionsServiceFactory* suggestions_service_factory =
sky 2014/11/18 03:33:31 Does MSVC really complain about this style?
Peter Kasting 2014/11/18 06:23:17 Yes :( I think this is some kind of bug. I can't
jamesr 2014/11/18 06:30:58 Have you filed a bug? Transforms like this make t
Peter Kasting 2014/11/18 06:36:06 I have not filed a bug, in part because, as I said
- SuggestionsServiceFactory::GetInstance();
-
SuggestionsService* suggestions_service(
- suggestions_service_factory->GetForProfile(profile_));
+ SuggestionsServiceFactory::GetInstance()->GetForProfile(profile_));
if (!suggestions_service) {
callback.Run(NULL);

Powered by Google App Engine
This is Rietveld 408576698