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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc

Issue 20609006: Add severity info to drive::EventLogger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase - the 2nd try - Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/file_manager/file_browser_private_a pi.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a pi.h"
6 6
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 #include <sys/statvfs.h> 8 #include <sys/statvfs.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <utime.h> 10 #include <utime.h>
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 bool allow = true; 688 bool allow = true;
689 if (!chromeos::CrosSettings::Get()->GetBoolean( 689 if (!chromeos::CrosSettings::Get()->GetBoolean(
690 chromeos::kAllowRedeemChromeOsRegistrationOffers, &allow)) { 690 chromeos::kAllowRedeemChromeOsRegistrationOffers, &allow)) {
691 allow = true; 691 allow = true;
692 } 692 }
693 value->SetBoolean("allowRedeemOffers", allow); 693 value->SetBoolean("allowRedeemOffers", allow);
694 } 694 }
695 695
696 SetResult(value.release()); 696 SetResult(value.release());
697 697
698 drive::util::Log("%s succeeded.", name().c_str()); 698 drive::util::Log(logging::LOG_INFO, "%s succeeded.", name().c_str());
699 return true; 699 return true;
700 } 700 }
701 701
702 SetPreferencesFunction::SetPreferencesFunction() { 702 SetPreferencesFunction::SetPreferencesFunction() {
703 } 703 }
704 704
705 SetPreferencesFunction::~SetPreferencesFunction() { 705 SetPreferencesFunction::~SetPreferencesFunction() {
706 } 706 }
707 707
708 bool SetPreferencesFunction::RunImpl() { 708 bool SetPreferencesFunction::RunImpl() {
709 base::DictionaryValue* value = NULL; 709 base::DictionaryValue* value = NULL;
710 710
711 if (!args_->GetDictionary(0, &value) || !value) 711 if (!args_->GetDictionary(0, &value) || !value)
712 return false; 712 return false;
713 713
714 PrefService* service = profile_->GetPrefs(); 714 PrefService* service = profile_->GetPrefs();
715 715
716 bool tmp; 716 bool tmp;
717 717
718 if (value->GetBoolean("cellularDisabled", &tmp)) 718 if (value->GetBoolean("cellularDisabled", &tmp))
719 service->SetBoolean(prefs::kDisableDriveOverCellular, tmp); 719 service->SetBoolean(prefs::kDisableDriveOverCellular, tmp);
720 720
721 if (value->GetBoolean("hostedFilesDisabled", &tmp)) 721 if (value->GetBoolean("hostedFilesDisabled", &tmp))
722 service->SetBoolean(prefs::kDisableDriveHostedFiles, tmp); 722 service->SetBoolean(prefs::kDisableDriveHostedFiles, tmp);
723 723
724 drive::util::Log("%s succeeded.", name().c_str()); 724 drive::util::Log(logging::LOG_INFO, "%s succeeded.", name().c_str());
725 return true; 725 return true;
726 } 726 }
727 727
728 ZipSelectionFunction::ZipSelectionFunction() { 728 ZipSelectionFunction::ZipSelectionFunction() {
729 } 729 }
730 730
731 ZipSelectionFunction::~ZipSelectionFunction() { 731 ZipSelectionFunction::~ZipSelectionFunction() {
732 } 732 }
733 733
734 bool ZipSelectionFunction::RunImpl() { 734 bool ZipSelectionFunction::RunImpl() {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 zoom_type = content::PAGE_ZOOM_RESET; 868 zoom_type = content::PAGE_ZOOM_RESET;
869 } else { 869 } else {
870 NOTREACHED(); 870 NOTREACHED();
871 return false; 871 return false;
872 } 872 }
873 view_host->Zoom(zoom_type); 873 view_host->Zoom(zoom_type);
874 return true; 874 return true;
875 } 875 }
876 876
877 } // namespace file_manager 877 } // namespace file_manager
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/logging.cc ('k') | chrome/browser/chromeos/extensions/file_manager/private_api_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698