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

Side by Side Diff: chrome/browser/sync/sync_ui_util.cc

Issue 7550023: [Sync] Add passphrase/encryption info to chrome://sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix restart case Created 9 years, 4 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
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/sync/sync_ui_util.h" 5 #include "chrome/browser/sync/sync_ui_util.h"
6 6
7 #include "base/i18n/number_formatting.h" 7 #include "base/i18n/number_formatting.h"
8 #include "base/i18n/time_formatting.h" 8 #include "base/i18n/time_formatting.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 full_status.empty_get_updates); 417 full_status.empty_get_updates);
418 sync_ui_util::AddIntSyncDetail(details, 418 sync_ui_util::AddIntSyncDetail(details,
419 "Nonempty GetUpdates", 419 "Nonempty GetUpdates",
420 full_status.nonempty_get_updates); 420 full_status.nonempty_get_updates);
421 sync_ui_util::AddIntSyncDetail(details, 421 sync_ui_util::AddIntSyncDetail(details,
422 "Useless Sync Cycles", 422 "Useless Sync Cycles",
423 full_status.useless_sync_cycles); 423 full_status.useless_sync_cycles);
424 sync_ui_util::AddIntSyncDetail(details, 424 sync_ui_util::AddIntSyncDetail(details,
425 "Useful Sync Cycles", 425 "Useful Sync Cycles",
426 full_status.useful_sync_cycles); 426 full_status.useful_sync_cycles);
427 sync_ui_util::AddBoolSyncDetail(details,
428 "Explicit Passphrase",
429 service->IsUsingSecondaryPassphrase());
430 sync_ui_util::AddBoolSyncDetail(details,
431 "Passphrase Required",
432 service->IsPassphraseRequired());
433 sync_ui_util::AddBoolSyncDetail(details,
434 "Encrypt Everything",
435 full_status.encrypt_everything);
436 sync_ui_util::AddBoolSyncDetail(details,
437 "Cryptographer Ready",
438 full_status.cryptographer_ready);
427 439
428 const browser_sync::sessions::SyncSessionSnapshot* snapshot = 440 const browser_sync::sessions::SyncSessionSnapshot* snapshot =
429 service->sync_initialized() ? 441 service->sync_initialized() ?
430 service->GetLastSessionSnapshot() : NULL; 442 service->GetLastSessionSnapshot() : NULL;
431 443
432 // |snapshot| could be NULL if sync is not yet initialized. 444 // |snapshot| could be NULL if sync is not yet initialized.
433 if (snapshot) { 445 if (snapshot) {
434 sync_ui_util::AddIntSyncDetail(details, "Download Count (This Session)", 446 sync_ui_util::AddIntSyncDetail(details, "Download Count (This Session)",
435 snapshot->syncer_status.num_updates_downloaded_total); 447 snapshot->syncer_status.num_updates_downloaded_total);
436 sync_ui_util::AddIntSyncDetail(details, "Commit Count (This Session)", 448 sync_ui_util::AddIntSyncDetail(details, "Commit Count (This Session)",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 DictionaryValue* val = new DictionaryValue; 482 DictionaryValue* val = new DictionaryValue;
471 val->SetString("model_type", ModelTypeToString(it->first)); 483 val->SetString("model_type", ModelTypeToString(it->first));
472 val->SetString("group", ModelSafeGroupToString(it->second)); 484 val->SetString("group", ModelSafeGroupToString(it->second));
473 routing_info->Append(val); 485 routing_info->Append(val);
474 } 486 }
475 } 487 }
476 } 488 }
477 } 489 }
478 490
479 } // namespace sync_ui_util 491 } // namespace sync_ui_util
OLDNEW
« chrome/browser/sync/engine/syncapi.cc ('K') | « chrome/browser/sync/engine/syncapi.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698