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

Unified Diff: chrome/browser/memory/tab_manager_delegate_chromeos.cc

Issue 2127373006: Use base::StartWith() in more places when appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, resolve conflict Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/proxy/proxy_api_helpers.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory/tab_manager_delegate_chromeos.cc
diff --git a/chrome/browser/memory/tab_manager_delegate_chromeos.cc b/chrome/browser/memory/tab_manager_delegate_chromeos.cc
index 93453227bb7baf76bc7c10c3ceee620738b929b1..5ffbd0b6d4f490d7f156a4f2726f80c3e3adbe2d 100644
--- a/chrome/browser/memory/tab_manager_delegate_chromeos.cc
+++ b/chrome/browser/memory/tab_manager_delegate_chromeos.cc
@@ -72,7 +72,8 @@ bool IsArcWindow(aura::Window* window) {
if (!window || window->name() != kExoShellSurfaceWindowName)
return false;
std::string application_id = exo::ShellSurface::GetApplicationId(window);
- return application_id.find(kArcProcessNamePrefix) == 0;
+ return base::StartsWith(application_id, kArcProcessNamePrefix,
+ base::CompareCase::SENSITIVE);
}
bool IsArcWindowInForeground() {
@@ -285,8 +286,9 @@ int TabManagerDelegate::MemoryStat::EstimatedMemoryFreedKB(
class TabManagerDelegate::UmaReporter {
public:
- UmaReporter() : last_kill_time_(), total_kills_(0) {}
+ UmaReporter() : total_kills_(0) {}
~UmaReporter() {}
+
void ReportKill(const int memory_freed);
private:
« no previous file with comments | « chrome/browser/extensions/api/proxy/proxy_api_helpers.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698