Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/translate/translate_service.h" | |
| 6 | |
| 7 #include "chrome/browser/browser_process.h" | |
| 8 #include "chrome/browser/translate/translate_manager.h" | |
| 9 #include "components/translate/core/browser/translate_download_manager.h" | |
| 10 | |
| 11 // static | |
| 12 void TranslateService::Initialize() { | |
| 13 TranslateManager::GetInstance(); | |
| 14 TranslateDownloadManager::GetInstance()->set_request_context( | |
|
blundell
2014/01/24 17:52:43
Is this class going to become more meaty in the fu
droger
2014/01/27 14:13:43
Yes, it is. See the followup CL:
https://coderevie
| |
| 15 g_browser_process->system_request_context()); | |
| 16 } | |
| 17 | |
| 18 // static | |
| 19 void TranslateService::Shutdown(bool cleanup_pending_fetcher) { | |
| 20 if (cleanup_pending_fetcher) | |
| 21 TranslateManager::GetInstance()->CleanupPendingUlrFetcher(); | |
|
blundell
2014/01/24 17:52:43
Could you file a bug to rename this CleanupPending
droger
2014/01/27 14:13:43
Why do you want to rename this?
| |
| 22 TranslateDownloadManager::GetInstance()->set_request_context(NULL); | |
| 23 } | |
| OLD | NEW |