~ci-train-bot/ubuntu-app-launch/ubuntu-app-launch-ubuntu-zesty-2384

« back to all changes in this revision

Viewing changes to libubuntu-app-launch/application.cpp

  • Committer: Bileto Bot
  • Author(s): Ted Gould
  • Date: 2017-01-24 14:13:58 UTC
  • mfrom: (255.5.25 abstract-jobs)
  • Revision ID: ci-train-bot@canonical.com-20170124141358-2jdigsckt4oog93b
Abstract out jobs backends and make Upstart one

Approved by: Marcus Tomlinson

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "application-impl-snap.h"
29
29
#endif
30
30
#include "application.h"
 
31
#include "jobs-base.h"
 
32
#include "registry-impl.h"
31
33
#include "registry.h"
32
34
 
33
35
#include <functional>
51
53
        throw std::runtime_error("Invalid registry object");
52
54
    }
53
55
 
 
56
    if (!registry->impl->jobs)
 
57
    {
 
58
        registry->impl->jobs = jobs::manager::Base::determineFactory(registry);
 
59
    }
 
60
 
54
61
    if (app_impls::Click::hasAppId(appid, registry))
55
62
    {
56
63
        return std::make_shared<app_impls::Click>(appid, registry);