diff options
author | Peter Kasting <pkasting@google.com> | 2014-11-20 15:14:08 -0800 |
---|---|---|
committer | Peter Kasting <pkasting@google.com> | 2014-11-20 23:16:57 +0000 |
commit | be940e9e152e528fc567c4eeeeb5930710873f98 (patch) | |
tree | 8496f9708b39b9ed106be20043e2e37d6ab58eb0 /chrome/browser/ui/webui/sync_internals_message_handler.cc | |
parent | ce6760690b52af662b5684f24dca6edc20832edf (diff) | |
download | chromium_src-be940e9e152e528fc567c4eeeeb5930710873f98.zip chromium_src-be940e9e152e528fc567c4eeeeb5930710873f98.tar.gz chromium_src-be940e9e152e528fc567c4eeeeb5930710873f98.tar.bz2 |
Enable MSVC warning for unused locals.
There is seemingly a bug in the compiler where it occasionally claims a local is
unused when it isn't. This forces a few places to either inline such locals or
mark them ALLOW_UNUSED_LOCAL.
BUG=81439
TEST=none
R=brettw@chromium.org, cpu@chromium.org, jamesr@chromium.org, rvargas@chromium.org, sievers@chromium.org, sky@chromium.org, vitalybuka@chromium.org, wolenetz@chromium.org
Review URL: https://codereview.chromium.org/731373002
Cr-Commit-Position: refs/heads/master@{#305108}
Diffstat (limited to 'chrome/browser/ui/webui/sync_internals_message_handler.cc')
-rw-r--r-- | chrome/browser/ui/webui/sync_internals_message_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/webui/sync_internals_message_handler.cc b/chrome/browser/ui/webui/sync_internals_message_handler.cc index fa21977..996bf4c 100644 --- a/chrome/browser/ui/webui/sync_internals_message_handler.cc +++ b/chrome/browser/ui/webui/sync_internals_message_handler.cc @@ -221,6 +221,6 @@ void SyncInternalsMessageHandler::SendAboutInfo() { // May return NULL (e.g., if sync is disabled on the command line). ProfileSyncService* SyncInternalsMessageHandler::GetProfileSyncService() { Profile* profile = Profile::FromWebUI(web_ui()); - ProfileSyncServiceFactory* factory = ProfileSyncServiceFactory::GetInstance(); - return factory->GetForProfile(profile->GetOriginalProfile()); + return ProfileSyncServiceFactory::GetForProfile( + profile->GetOriginalProfile()); } |