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/web_resource/web_resource_service.h" | 5 #include "chrome/browser/web_resource/web_resource_service.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 const std::string& json_data_; | 214 const std::string& json_data_; |
215 | 215 |
216 // True if we got a response from the utility process and have cleaned up | 216 // True if we got a response from the utility process and have cleaned up |
217 // already. | 217 // already. |
218 bool got_response_; | 218 bool got_response_; |
219 }; | 219 }; |
220 | 220 |
221 // Server for dynamically loaded NTP HTML elements. TODO(mirandac): append | 221 // Server for dynamically loaded NTP HTML elements. TODO(mirandac): append |
222 // locale for future usage, when we're serving localizable strings. | 222 // locale for future usage, when we're serving localizable strings. |
223 const char* WebResourceService::kDefaultWebResourceServer = | 223 const char* WebResourceService::kDefaultWebResourceServer = |
224 "https://www.google.com/support/chrome/bin/topic/30248/inproduct"; | 224 "https://www.google.com/support/chrome/bin/topic/1142433/inproduct"; |
225 | 225 |
226 WebResourceService::WebResourceService(Profile* profile) | 226 WebResourceService::WebResourceService(Profile* profile) |
227 : prefs_(profile->GetPrefs()), | 227 : prefs_(profile->GetPrefs()), |
228 profile_(profile), | 228 profile_(profile), |
229 ALLOW_THIS_IN_INITIALIZER_LIST(service_factory_(this)), | 229 ALLOW_THIS_IN_INITIALIZER_LIST(service_factory_(this)), |
230 in_fetch_(false), | 230 in_fetch_(false), |
231 web_resource_update_scheduled_(false) { | 231 web_resource_update_scheduled_(false) { |
232 Init(); | 232 Init(); |
233 } | 233 } |
234 | 234 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 } else { | 571 } else { |
572 is_promo_build = true; | 572 is_promo_build = true; |
573 } | 573 } |
574 } | 574 } |
575 | 575 |
576 return !promo_closed && !is_synced && is_promo_build; | 576 return !promo_closed && !is_synced && is_promo_build; |
577 } | 577 } |
578 | 578 |
579 } // namespace WebResourceService | 579 } // namespace WebResourceService |
580 | 580 |
OLD | NEW |