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

Side by Side Diff: chrome/browser/translate/chrome_translate_delegate.cc

Issue 131463002: Move TranslateURLFetcher to the translate component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix translate.gypi for real Created 6 years, 11 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
(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/chrome_translate_delegate.h"
6
7 #include "base/memory/singleton.h"
8 #include "chrome/browser/browser_process.h"
9
10 ChromeTranslateDelegate* ChromeTranslateDelegate::GetInstance() {
11 return Singleton<ChromeTranslateDelegate>::get();
12 }
13
14 ChromeTranslateDelegate::ChromeTranslateDelegate() {}
15
16 ChromeTranslateDelegate::~ChromeTranslateDelegate() {}
17
18 // TranslateDelegate methods.
19
20 net::URLRequestContextGetter* ChromeTranslateDelegate::GetURLRequestContext() {
21 return g_browser_process->system_request_context();
22 }
OLDNEW
« no previous file with comments | « chrome/browser/translate/chrome_translate_delegate.h ('k') | chrome/browser/translate/translate_language_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698