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

Side by Side Diff: components/feedback/feedback_uploader_delegate.cc

Issue 225183018: Move feedback files into src/components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to latest Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/feedback/feedback_uploader_delegate.h" 5 #include "components/feedback/feedback_uploader_delegate.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "net/url_request/url_fetcher.h" 10 #include "net/url_request/url_fetcher.h"
11 #include "url/gurl.h"
12 11
13 namespace feedback { 12 namespace feedback {
14 namespace { 13 namespace {
15 14
16 const int kHttpPostSuccessNoContent = 204; 15 const int kHttpPostSuccessNoContent = 204;
17 const int kHttpPostFailNoConnection = -1; 16 const int kHttpPostFailNoConnection = -1;
18 const int kHttpPostFailClientError = 400; 17 const int kHttpPostFailClientError = 400;
19 const int kHttpPostFailServerError = 500; 18 const int kHttpPostFailServerError = 500;
20 19
21 } // namespace 20 } // namespace
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 55 }
57 56
58 LOG(WARNING) << "FEEDBACK: Submission to feedback server (" 57 LOG(WARNING) << "FEEDBACK: Submission to feedback server ("
59 << source->GetURL() << ") status: " << error_stream.str(); 58 << source->GetURL() << ") status: " << error_stream.str();
60 59
61 // This instance won't be used for anything else, delete us. 60 // This instance won't be used for anything else, delete us.
62 delete this; 61 delete this;
63 } 62 }
64 63
65 } // namespace feedback 64 } // namespace feedback
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698