OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/offline/offline_load_page.h" | 5 #include "chrome/browser/chromeos/offline/offline_load_page.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/string_piece.h" | 9 #include "base/string_piece.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "content/browser/tab_contents/navigation_controller.h" | 25 #include "content/browser/tab_contents/navigation_controller.h" |
26 #include "content/browser/tab_contents/navigation_entry.h" | 26 #include "content/browser/tab_contents/navigation_entry.h" |
27 #include "content/browser/tab_contents/tab_contents.h" | 27 #include "content/browser/tab_contents/tab_contents.h" |
28 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
29 #include "content/public/browser/notification_types.h" | 29 #include "content/public/browser/notification_types.h" |
30 #include "grit/browser_resources.h" | 30 #include "grit/browser_resources.h" |
31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
33 #include "ui/base/resource/resource_bundle.h" | 33 #include "ui/base/resource/resource_bundle.h" |
34 | 34 |
| 35 using content::BrowserThread; |
| 36 |
35 namespace { | 37 namespace { |
36 | 38 |
37 // Maximum time to show a blank page. | 39 // Maximum time to show a blank page. |
38 const int kMaxBlankPeriod = 3000; | 40 const int kMaxBlankPeriod = 3000; |
39 | 41 |
40 // A utility function to set the dictionary's value given by |resource_id|. | 42 // A utility function to set the dictionary's value given by |resource_id|. |
41 void SetString(DictionaryValue* strings, const char* name, int resource_id) { | 43 void SetString(DictionaryValue* strings, const char* name, int resource_id) { |
42 strings->SetString(name, l10n_util::GetStringUTF16(resource_id)); | 44 strings->SetString(name, l10n_util::GetStringUTF16(resource_id)); |
43 } | 45 } |
44 | 46 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 for (size_t i = 0; i < cell_networks.size(); ++i) { | 206 for (size_t i = 0; i < cell_networks.size(); ++i) { |
205 chromeos::ActivationState activation_state = | 207 chromeos::ActivationState activation_state = |
206 cell_networks[i]->activation_state(); | 208 cell_networks[i]->activation_state(); |
207 if (activation_state == ACTIVATION_STATE_ACTIVATED) | 209 if (activation_state == ACTIVATION_STATE_ACTIVATED) |
208 return false; | 210 return false; |
209 } | 211 } |
210 return true; | 212 return true; |
211 } | 213 } |
212 | 214 |
213 } // namespace chromeos | 215 } // namespace chromeos |
OLD | NEW |