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

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

Issue 5685004: Fix sync in Chromium-os by not allowing CanShowPromo to initialize the sync s... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 iter != extensions->end(); 512 iter != extensions->end();
513 ++iter) { 513 ++iter) {
514 if ((*iter)->location() == Extension::INTERNAL) { 514 if ((*iter)->location() == Extension::INTERNAL) {
515 has_extensions = true; 515 has_extensions = true;
516 break; 516 break;
517 } 517 }
518 } 518 }
519 } 519 }
520 520
521 bool promo_options = 521 bool promo_options =
522 sync_ui_util::GetStatus( 522 (profile->HasProfileSyncService() &&
523 profile->GetProfileSyncService()) == sync_ui_util::SYNCED || 523 sync_ui_util::GetStatus(
524 has_extensions; 524 profile->GetProfileSyncService()) == sync_ui_util::SYNCED) ||
525 has_extensions;
525 526
stevenjb 2010/12/10 17:40:47 We should add a comment here that mentions that Ha
526 return !promo_closed && 527 return !promo_closed &&
527 promo_options && 528 promo_options &&
528 g_browser_process->GetApplicationLocale() == "en-US"; 529 g_browser_process->GetApplicationLocale() == "en-US";
529 } 530 }
530 531
531 } // namespace WebResourceService 532 } // namespace WebResourceService
532 533
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