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

Side by Side Diff: content/browser/browsing_data/clear_site_data_throttle.cc

Issue 2646033003: DevTools: streamline console logging levels, migrate 'log' to 'info' level, 'debug' to 'verbose' le… (Closed)
Patch Set: missing rebaseline Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/browser/browsing_data/clear_site_data_throttle.h" 5 #include "content/browser/browsing_data/clear_site_data_throttle.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_string_value_serializer.h" 9 #include "base/json/json_string_value_serializer.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 output = base::StringPrintf(kClearingTwoTypes, type_names[0].c_str(), 255 output = base::StringPrintf(kClearingTwoTypes, type_names[0].c_str(),
256 type_names[1].c_str()); 256 type_names[1].c_str());
257 break; 257 break;
258 case 3: 258 case 3:
259 output = base::StringPrintf(kClearingThreeTypes, type_names[0].c_str(), 259 output = base::StringPrintf(kClearingThreeTypes, type_names[0].c_str(),
260 type_names[1].c_str(), type_names[2].c_str()); 260 type_names[1].c_str(), type_names[2].c_str());
261 break; 261 break;
262 default: 262 default:
263 NOTREACHED(); 263 NOTREACHED();
264 } 264 }
265 ConsoleLog(messages, current_url_, output, CONSOLE_MESSAGE_LEVEL_LOG); 265 ConsoleLog(messages, current_url_, output, CONSOLE_MESSAGE_LEVEL_INFO);
266 266
267 return true; 267 return true;
268 } 268 }
269 269
270 void ClearSiteDataThrottle::TaskFinished() { 270 void ClearSiteDataThrottle::TaskFinished() {
271 DCHECK(clearing_in_progress_); 271 DCHECK(clearing_in_progress_);
272 clearing_in_progress_ = false; 272 clearing_in_progress_ = false;
273 273
274 UMA_HISTOGRAM_CUSTOM_TIMES("Navigation.ClearSiteData.Duration", 274 UMA_HISTOGRAM_CUSTOM_TIMES("Navigation.ClearSiteData.Duration",
275 base::TimeTicks::Now() - clearing_started_, 275 base::TimeTicks::Now() - clearing_started_,
276 base::TimeDelta::FromMilliseconds(1), 276 base::TimeDelta::FromMilliseconds(1),
277 base::TimeDelta::FromSeconds(1), 50); 277 base::TimeDelta::FromSeconds(1), 50);
278 278
279 navigation_handle()->Resume(); 279 navigation_handle()->Resume();
280 } 280 }
281 281
282 } // namespace content 282 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698