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

Side by Side Diff: chrome/browser/web_resource/web_resource_service.cc

Issue 6368018: Fix web resource server so that it points at the topic for the new promo.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698