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

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: 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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 bool allow = true; 1242 bool allow = true;
1243 if (!chromeos::CrosSettings::Get()->GetBoolean( 1243 if (!chromeos::CrosSettings::Get()->GetBoolean(
1244 chromeos::kAllowRedeemChromeOsRegistrationOffers, &allow)) { 1244 chromeos::kAllowRedeemChromeOsRegistrationOffers, &allow)) {
1245 allow = true; 1245 allow = true;
1246 } 1246 }
1247 value->SetBoolean("allowRedeemOffers", allow); 1247 value->SetBoolean("allowRedeemOffers", allow);
1248 } 1248 }
1249 1249
1250 SetResult(value.release()); 1250 SetResult(value.release());
1251 1251
1252 drive::util::Log("%s succeeded.", name().c_str()); 1252 drive::util::Log(logging::LOG_INFO, "%s succeeded.", name().c_str());
1253 return true; 1253 return true;
1254 } 1254 }
1255 1255
1256 SetPreferencesFunction::SetPreferencesFunction() { 1256 SetPreferencesFunction::SetPreferencesFunction() {
1257 } 1257 }
1258 1258
1259 SetPreferencesFunction::~SetPreferencesFunction() { 1259 SetPreferencesFunction::~SetPreferencesFunction() {
1260 } 1260 }
1261 1261
1262 bool SetPreferencesFunction::RunImpl() { 1262 bool SetPreferencesFunction::RunImpl() {
1263 base::DictionaryValue* value = NULL; 1263 base::DictionaryValue* value = NULL;
1264 1264
1265 if (!args_->GetDictionary(0, &value) || !value) 1265 if (!args_->GetDictionary(0, &value) || !value)
1266 return false; 1266 return false;
1267 1267
1268 PrefService* service = profile_->GetPrefs(); 1268 PrefService* service = profile_->GetPrefs();
1269 1269
1270 bool tmp; 1270 bool tmp;
1271 1271
1272 if (value->GetBoolean("cellularDisabled", &tmp)) 1272 if (value->GetBoolean("cellularDisabled", &tmp))
1273 service->SetBoolean(prefs::kDisableDriveOverCellular, tmp); 1273 service->SetBoolean(prefs::kDisableDriveOverCellular, tmp);
1274 1274
1275 if (value->GetBoolean("hostedFilesDisabled", &tmp)) 1275 if (value->GetBoolean("hostedFilesDisabled", &tmp))
1276 service->SetBoolean(prefs::kDisableDriveHostedFiles, tmp); 1276 service->SetBoolean(prefs::kDisableDriveHostedFiles, tmp);
1277 1277
1278 drive::util::Log("%s succeeded.", name().c_str()); 1278 drive::util::Log(logging::LOG_INFO, "%s succeeded.", name().c_str());
1279 return true; 1279 return true;
1280 } 1280 }
1281 1281
1282 ZipSelectionFunction::ZipSelectionFunction() { 1282 ZipSelectionFunction::ZipSelectionFunction() {
1283 } 1283 }
1284 1284
1285 ZipSelectionFunction::~ZipSelectionFunction() { 1285 ZipSelectionFunction::~ZipSelectionFunction() {
1286 } 1286 }
1287 1287
1288 bool ZipSelectionFunction::RunImpl() { 1288 bool ZipSelectionFunction::RunImpl() {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 zoom_type = content::PAGE_ZOOM_RESET; 1422 zoom_type = content::PAGE_ZOOM_RESET;
1423 } else { 1423 } else {
1424 NOTREACHED(); 1424 NOTREACHED();
1425 return false; 1425 return false;
1426 } 1426 }
1427 view_host->Zoom(zoom_type); 1427 view_host->Zoom(zoom_type);
1428 return true; 1428 return true;
1429 } 1429 }
1430 1430
1431 } // namespace file_manager 1431 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698