OLD | NEW |
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 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 browser_process_->variations_service(); | 1548 browser_process_->variations_service(); |
1549 if (variations_service) { | 1549 if (variations_service) { |
1550 variations_service->StartRepeatedVariationsSeedFetch(); | 1550 variations_service->StartRepeatedVariationsSeedFetch(); |
1551 | 1551 |
1552 #if defined(OS_WIN) | 1552 #if defined(OS_WIN) |
1553 variations_service->StartGoogleUpdateRegistrySync(); | 1553 variations_service->StartGoogleUpdateRegistrySync(); |
1554 #endif | 1554 #endif |
1555 } | 1555 } |
1556 | 1556 |
1557 #if !defined(OS_CHROMEOS) | 1557 #if !defined(OS_CHROMEOS) |
1558 // TODO(mad): Move this call in a proper place on CrOS. | 1558 // In CrOS, Translate omits to update language lists here because a user |
1559 // http://crosbug.com/17687 | 1559 // didn't accept EULA yet. They will be updated when the first infobar |
| 1560 // goes to be shown, or a device becomes online. |
1560 if (translate_manager_ != NULL) { | 1561 if (translate_manager_ != NULL) { |
1561 translate_manager_->FetchLanguageListFromTranslateServer( | 1562 translate_manager_->FetchLanguageListFromTranslateServer( |
1562 profile_->GetPrefs()); | 1563 profile_->GetPrefs()); |
1563 } | 1564 } |
1564 #endif | 1565 #endif |
1565 } | 1566 } |
1566 | 1567 |
1567 run_message_loop_ = true; | 1568 run_message_loop_ = true; |
1568 } else { | 1569 } else { |
1569 run_message_loop_ = false; | 1570 run_message_loop_ = false; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1774 if (base::win::GetVersion() <= base::win::VERSION_XP) |
1774 uma_name += "_XP"; | 1775 uma_name += "_XP"; |
1775 | 1776 |
1776 uma_name += "_PreRead_"; | 1777 uma_name += "_PreRead_"; |
1777 uma_name += pre_read_percentage; | 1778 uma_name += pre_read_percentage; |
1778 AddPreReadHistogramTime(uma_name.c_str(), time); | 1779 AddPreReadHistogramTime(uma_name.c_str(), time); |
1779 } | 1780 } |
1780 #endif | 1781 #endif |
1781 #endif | 1782 #endif |
1782 } | 1783 } |
OLD | NEW |