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

Side by Side Diff: components/feedback/feedback_uploader_chrome.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_chrome.h" 5 #include "components/feedback/feedback_uploader_chrome.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/task_runner_util.h" 10 #include "base/task_runner_util.h"
11 #include "base/threading/sequenced_worker_pool.h" 11 #include "base/threading/sequenced_worker_pool.h"
12 #include "chrome/browser/feedback/feedback_report.h" 12 #include "components/feedback/feedback_report.h"
13 #include "chrome/browser/feedback/feedback_uploader_delegate.h" 13 #include "components/feedback/feedback_switches.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "components/feedback/feedback_uploader_delegate.h"
15 #include "content/public/browser/browser_context.h" 15 #include "content/public/browser/browser_context.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "net/base/load_flags.h" 17 #include "net/base/load_flags.h"
18 #include "net/url_request/url_fetcher.h" 18 #include "net/url_request/url_fetcher.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 namespace feedback { 23 namespace feedback {
24 namespace { 24 namespace {
(...skipping 24 matching lines...) Expand all
49 base::Bind(&FeedbackUploaderChrome::RetryReport, AsWeakPtr()))); 49 base::Bind(&FeedbackUploaderChrome::RetryReport, AsWeakPtr())));
50 50
51 fetcher->SetUploadData(std::string(kProtoBufMimeType), data); 51 fetcher->SetUploadData(std::string(kProtoBufMimeType), data);
52 fetcher->SetRequestContext(context_->GetRequestContext()); 52 fetcher->SetRequestContext(context_->GetRequestContext());
53 fetcher->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES | 53 fetcher->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
54 net::LOAD_DO_NOT_SEND_COOKIES); 54 net::LOAD_DO_NOT_SEND_COOKIES);
55 fetcher->Start(); 55 fetcher->Start();
56 } 56 }
57 57
58 } // namespace feedback 58 } // namespace feedback
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698