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

Unified Diff: chromecast/app/android/crash_handler.cc

Issue 1154383006: Adding crash utilities to chromecast/crash. (Closed) Base URL: https://eureka-internal.googlesource.com/chromium/src@master
Patch Set: cast_shell_unittests not built for android Created 5 years, 6 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 | « chromecast/app/android/crash_handler.h ('k') | chromecast/app/cast_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/app/android/crash_handler.cc
diff --git a/chromecast/crash/android/crash_handler.cc b/chromecast/app/android/crash_handler.cc
similarity index 86%
rename from chromecast/crash/android/crash_handler.cc
rename to chromecast/app/android/crash_handler.cc
index 12b1acd78d18fc25a1efa72f76e79c8848c47166..8a2dc7ac657a65ab30ac2b2aaf52c16a008b495f 100644
--- a/chromecast/crash/android/crash_handler.cc
+++ b/chromecast/app/android/crash_handler.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromecast/crash/android/crash_handler.h"
+#include "chromecast/app/android/crash_handler.h"
#include <jni.h>
#include <stdlib.h>
@@ -15,8 +15,8 @@
#include "base/strings/string_number_conversions.h"
#include "breakpad/src/client/linux/handler/exception_handler.h"
#include "breakpad/src/client/linux/handler/minidump_descriptor.h"
+#include "chromecast/app/android/cast_crash_reporter_client_android.h"
#include "chromecast/base/version.h"
-#include "chromecast/crash/android/cast_crash_reporter_client_android.h"
#include "components/crash/app/breakpad_linux.h"
#include "components/crash/app/crash_reporter_client.h"
#include "content/public/common/content_switches.h"
@@ -54,8 +54,8 @@ void CrashHandler::Initialize(const std::string& process_type,
// static
bool CrashHandler::GetCrashDumpLocation(base::FilePath* crash_dir) {
DCHECK(g_crash_handler);
- return g_crash_handler->crash_reporter_client_->
- GetCrashDumpLocation(crash_dir);
+ return g_crash_handler->crash_reporter_client_->GetCrashDumpLocation(
+ crash_dir);
}
// static
@@ -94,11 +94,12 @@ void CrashHandler::Initialize() {
void CrashHandler::InitializeUploader() {
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaLocalRef<jstring> crash_dump_path_java =
- base::android::ConvertUTF8ToJavaString(env,
- crash_dump_path_.value());
+ base::android::ConvertUTF8ToJavaString(env, crash_dump_path_.value());
Java_CastCrashHandler_initializeUploader(
- env, base::android::GetApplicationContext(),
- crash_dump_path_java.obj(), UploadCrashToStaging());
+ env,
+ base::android::GetApplicationContext(),
+ crash_dump_path_java.obj(),
+ UploadCrashToStaging());
}
} // namespace chromecast
« no previous file with comments | « chromecast/app/android/crash_handler.h ('k') | chromecast/app/cast_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698