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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 15949022: Translate: language list smart updater (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits for retry Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #if defined(TOOLKIT_GTK) 7 #if defined(TOOLKIT_GTK)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 browser_process_->variations_service(); 1543 browser_process_->variations_service();
1544 if (variations_service) { 1544 if (variations_service) {
1545 variations_service->StartRepeatedVariationsSeedFetch(); 1545 variations_service->StartRepeatedVariationsSeedFetch();
1546 1546
1547 #if defined(OS_WIN) 1547 #if defined(OS_WIN)
1548 variations_service->StartGoogleUpdateRegistrySync(); 1548 variations_service->StartGoogleUpdateRegistrySync();
1549 #endif 1549 #endif
1550 } 1550 }
1551 1551
1552 #if !defined(OS_CHROMEOS) 1552 #if !defined(OS_CHROMEOS)
1553 // TODO(mad): Move this call in a proper place on CrOS. 1553 // In CrOS, Translate omits to update language lists here because a user
1554 // http://crosbug.com/17687 1554 // didn't accept EULA yet. They will be updated when the first infobar
1555 // goes to be shown, or a device becomes online.
1555 if (translate_manager_ != NULL) { 1556 if (translate_manager_ != NULL) {
1556 translate_manager_->FetchLanguageListFromTranslateServer( 1557 translate_manager_->FetchLanguageListFromTranslateServer(
1557 profile_->GetPrefs()); 1558 profile_->GetPrefs());
1558 } 1559 }
1559 #endif 1560 #endif
1560 } 1561 }
1561 1562
1562 run_message_loop_ = true; 1563 run_message_loop_ = true;
1563 } else { 1564 } else {
1564 run_message_loop_ = false; 1565 run_message_loop_ = false;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1768 if (base::win::GetVersion() <= base::win::VERSION_XP) 1769 if (base::win::GetVersion() <= base::win::VERSION_XP)
1769 uma_name += "_XP"; 1770 uma_name += "_XP";
1770 1771
1771 uma_name += "_PreRead_"; 1772 uma_name += "_PreRead_";
1772 uma_name += pre_read_percentage; 1773 uma_name += pre_read_percentage;
1773 AddPreReadHistogramTime(uma_name.c_str(), time); 1774 AddPreReadHistogramTime(uma_name.c_str(), time);
1774 } 1775 }
1775 #endif 1776 #endif
1776 #endif 1777 #endif
1777 } 1778 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/translate/translate_language_list.h » ('j') | chrome/browser/translate/translate_language_list.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698