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

Unified Diff: mash/example/views_examples/views_examples.cc

Issue 2967943002: Update AuraInit to handle failed initialization (Closed)
Patch Set: Switch to a Create method for AuraInit Created 3 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 | « mash/catalog_viewer/catalog_viewer.cc ('k') | mash/example/window_type_launcher/window_type_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/example/views_examples/views_examples.cc
diff --git a/mash/example/views_examples/views_examples.cc b/mash/example/views_examples/views_examples.cc
index e559bf998ec8ea814d369494f15a04946a3a58c5..da9a8a505a82af35c24010c0298d38a267d11e80 100644
--- a/mash/example/views_examples/views_examples.cc
+++ b/mash/example/views_examples/views_examples.cc
@@ -31,10 +31,12 @@ class ViewsExamples : public service_manager::Service,
private:
// service_manager::Service:
void OnStart() override {
- aura_init_ = base::MakeUnique<views::AuraInit>(
- context()->connector(), context()->identity(),
- "views_mus_resources.pak", std::string(), nullptr,
- views::AuraInit::Mode::AURA_MUS);
+ aura_init_ =
+ views::AuraInit::Create(context()->connector(), context()->identity(),
+ "views_mus_resources.pak", std::string(),
+ nullptr, views::AuraInit::Mode::AURA_MUS);
+ if (!aura_init_)
+ context()->QuitNow();
}
void OnBindInterface(const service_manager::BindSourceInfo& source_info,
const std::string& interface_name,
« no previous file with comments | « mash/catalog_viewer/catalog_viewer.cc ('k') | mash/example/window_type_launcher/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698