Chromium Code Reviews

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

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/translate/translate_manager.h" 5 #include "chrome/browser/translate/translate_manager.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/histogram.h" 9 #include "base/histogram.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "chrome/browser/browser.h" 11 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_list.h" 12 #include "chrome/browser/browser_list.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/browser/profile.h" 15 #include "chrome/browser/profile.h"
16 #include "chrome/browser/renderer_host/render_process_host.h" 16 #include "chrome/browser/renderer_host/render_process_host.h"
17 #include "chrome/browser/renderer_host/render_view_host.h" 17 #include "chrome/browser/renderer_host/render_view_host.h"
18 #include "chrome/browser/tab_contents/language_state.h" 18 #include "chrome/browser/tab_contents/language_state.h"
19 #include "chrome/browser/tab_contents/navigation_controller.h" 19 #include "chrome/browser/tab_contents/navigation_controller.h"
20 #include "chrome/browser/tab_contents/navigation_entry.h" 20 #include "chrome/browser/tab_contents/navigation_entry.h"
21 #include "chrome/browser/tab_contents/tab_contents.h" 21 #include "chrome/browser/tab_contents/tab_contents.h"
22 #include "chrome/browser/tab_contents/tab_util.h" 22 #include "chrome/browser/tab_contents/tab_util.h"
23 #include "chrome/browser/translate/page_translated_details.h" 23 #include "chrome/browser/translate/page_translated_details.h"
24 #include "chrome/browser/translate/translate_infobar_delegate.h" 24 #include "chrome/browser/translate/translate_infobar_delegate.h"
(...skipping 576 matching lines...)
601 TranslateInfoBarDelegate* TranslateManager::GetTranslateInfoBarDelegate( 601 TranslateInfoBarDelegate* TranslateManager::GetTranslateInfoBarDelegate(
602 TabContents* tab) { 602 TabContents* tab) {
603 for (int i = 0; i < tab->infobar_delegate_count(); ++i) { 603 for (int i = 0; i < tab->infobar_delegate_count(); ++i) {
604 TranslateInfoBarDelegate* delegate = 604 TranslateInfoBarDelegate* delegate =
605 tab->GetInfoBarDelegateAt(i)->AsTranslateInfoBarDelegate(); 605 tab->GetInfoBarDelegateAt(i)->AsTranslateInfoBarDelegate();
606 if (delegate) 606 if (delegate)
607 return delegate; 607 return delegate;
608 } 608 }
609 return NULL; 609 return NULL;
610 } 610 }
OLDNEW

Powered by Google App Engine