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

Side by Side Diff: chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc

Issue 2228913003: Move part of browsing data counter text util method to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « chrome/browser/ui/webui/options/clear_browser_data_handler.cc ('k') | components/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ui/webui/settings/settings_clear_browsing_data_handler. h" 5 #include "chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler. h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 counter->Restart(); 296 counter->Restart();
297 counters_.push_back(std::move(counter)); 297 counters_.push_back(std::move(counter));
298 } 298 }
299 299
300 void ClearBrowsingDataHandler::UpdateCounterText( 300 void ClearBrowsingDataHandler::UpdateCounterText(
301 std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result) { 301 std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result) {
302 CallJavascriptFunction( 302 CallJavascriptFunction(
303 "cr.webUIListenerCallback", 303 "cr.webUIListenerCallback",
304 base::StringValue("update-counter-text"), 304 base::StringValue("update-counter-text"),
305 base::StringValue(result->source()->GetPrefName()), 305 base::StringValue(result->source()->GetPrefName()),
306 base::StringValue(GetCounterTextFromResult(result.get()))); 306 base::StringValue(GetChromeCounterTextFromResult(result.get())));
307 } 307 }
308 308
309 } // namespace settings 309 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/clear_browser_data_handler.cc ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698