Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / translate / chrome_translate_delegate.cc
blob29393837340898a46fa8a8b5aeabeb4d4967e16e
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.
5 #include "chrome/browser/translate/chrome_translate_delegate.h"
7 #include "base/memory/singleton.h"
8 #include "chrome/browser/browser_process.h"
10 ChromeTranslateDelegate* ChromeTranslateDelegate::GetInstance() {
11 return Singleton<ChromeTranslateDelegate>::get();
14 ChromeTranslateDelegate::ChromeTranslateDelegate() {}
16 ChromeTranslateDelegate::~ChromeTranslateDelegate() {}
18 // TranslateDelegate methods.
20 net::URLRequestContextGetter* ChromeTranslateDelegate::GetURLRequestContext() {
21 return g_browser_process->system_request_context();