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/customization_document.h" | 5 #include "chrome/browser/chromeos/customization_document.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const char kServicesCustomizationAppliedPref[] = "ServicesCustomizationApplied"; | 62 const char kServicesCustomizationAppliedPref[] = "ServicesCustomizationApplied"; |
63 | 63 |
64 // Maximum number of retries to fetch file if network is not available. | 64 // Maximum number of retries to fetch file if network is not available. |
65 const int kMaxFetchRetries = 3; | 65 const int kMaxFetchRetries = 3; |
66 | 66 |
67 // Delay between file fetch retries if network is not available. | 67 // Delay between file fetch retries if network is not available. |
68 const int kRetriesDelayInSec = 2; | 68 const int kRetriesDelayInSec = 2; |
69 | 69 |
70 } // anonymous namespace | 70 } // anonymous namespace |
71 | 71 |
72 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::ServicesCustomizationDocument); | |
73 | |
74 namespace chromeos { | 72 namespace chromeos { |
75 | 73 |
76 // CustomizationDocument implementation. --------------------------------------- | 74 // CustomizationDocument implementation. --------------------------------------- |
77 | 75 |
78 CustomizationDocument::CustomizationDocument( | 76 CustomizationDocument::CustomizationDocument( |
79 const std::string& accepted_version) | 77 const std::string& accepted_version) |
80 : accepted_version_(accepted_version) {} | 78 : accepted_version_(accepted_version) {} |
81 | 79 |
82 CustomizationDocument::~CustomizationDocument() {} | 80 CustomizationDocument::~CustomizationDocument() {} |
83 | 81 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 locale, kAppContentAttr, kInitialStartPageAttr); | 336 locale, kAppContentAttr, kInitialStartPageAttr); |
339 } | 337 } |
340 | 338 |
341 std::string ServicesCustomizationDocument::GetSupportPage( | 339 std::string ServicesCustomizationDocument::GetSupportPage( |
342 const std::string& locale) const { | 340 const std::string& locale) const { |
343 return GetLocaleSpecificString( | 341 return GetLocaleSpecificString( |
344 locale, kAppContentAttr, kSupportPageAttr); | 342 locale, kAppContentAttr, kSupportPageAttr); |
345 } | 343 } |
346 | 344 |
347 } // namespace chromeos | 345 } // namespace chromeos |
OLD | NEW |