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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/translate/chrome_translate_client.h" 5 #include "chrome/browser/translate/chrome_translate_client.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/prefs/pref_service.h"
12 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
13 #include "build/build_config.h" 12 #include "build/build_config.h"
14 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/chrome_notification_types.h" 14 #include "chrome/browser/chrome_notification_types.h"
16 #include "chrome/browser/infobars/infobar_service.h" 15 #include "chrome/browser/infobars/infobar_service.h"
17 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/translate/translate_accept_languages_factory.h" 17 #include "chrome/browser/translate/translate_accept_languages_factory.h"
19 #include "chrome/browser/translate/translate_service.h" 18 #include "chrome/browser/translate/translate_service.h"
20 #include "chrome/browser/ui/browser.h" 19 #include "chrome/browser/ui/browser.h"
21 #include "chrome/browser/ui/browser_finder.h" 20 #include "chrome/browser/ui/browser_finder.h"
22 #include "chrome/browser/ui/browser_tabstrip.h" 21 #include "chrome/browser/ui/browser_tabstrip.h"
23 #include "chrome/browser/ui/browser_window.h" 22 #include "chrome/browser/ui/browser_window.h"
24 #include "chrome/browser/ui/tabs/tab_strip_model.h" 23 #include "chrome/browser/ui/tabs/tab_strip_model.h"
25 #include "chrome/browser/ui/translate/translate_bubble_factory.h" 24 #include "chrome/browser/ui/translate/translate_bubble_factory.h"
26 #include "chrome/common/chrome_paths.h" 25 #include "chrome/common/chrome_paths.h"
27 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
27 #include "components/prefs/pref_service.h"
28 #include "components/translate/content/common/cld_data_source.h" 28 #include "components/translate/content/common/cld_data_source.h"
29 #include "components/translate/content/common/translate_messages.h" 29 #include "components/translate/content/common/translate_messages.h"
30 #include "components/translate/core/browser/language_state.h" 30 #include "components/translate/core/browser/language_state.h"
31 #include "components/translate/core/browser/page_translated_details.h" 31 #include "components/translate/core/browser/page_translated_details.h"
32 #include "components/translate/core/browser/translate_accept_languages.h" 32 #include "components/translate/core/browser/translate_accept_languages.h"
33 #include "components/translate/core/browser/translate_download_manager.h" 33 #include "components/translate/core/browser/translate_download_manager.h"
34 #include "components/translate/core/browser/translate_infobar_delegate.h" 34 #include "components/translate/core/browser/translate_infobar_delegate.h"
35 #include "components/translate/core/browser/translate_manager.h" 35 #include "components/translate/core/browser/translate_manager.h"
36 #include "components/translate/core/browser/translate_prefs.h" 36 #include "components/translate/core/browser/translate_prefs.h"
37 #include "components/translate/core/common/language_detection_details.h" 37 #include "components/translate/core/common/language_detection_details.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 if (GetLanguageState().InTranslateNavigation()) 342 if (GetLanguageState().InTranslateNavigation())
343 return; 343 return;
344 } 344 }
345 345
346 TranslateBubbleFactory::Show( 346 TranslateBubbleFactory::Show(
347 browser->window(), web_contents(), step, error_type); 347 browser->window(), web_contents(), step, error_type);
348 #else 348 #else
349 NOTREACHED(); 349 NOTREACHED();
350 #endif 350 #endif
351 } 351 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698