Revert "Handling App Control Data" 44/173944/1
authorjaekuk lee <juku1999@samsung.com>
Tue, 27 Mar 2018 05:15:14 +0000 (05:15 +0000)
committerjaekuk lee <juku1999@samsung.com>
Tue, 27 Mar 2018 05:15:14 +0000 (05:15 +0000)
This reverts commit fd80b9a284b4e8fcbf0787ce457a0e1c93498bc0.

Change-Id: Ifdbad4f988f46c92ea5ffbde5a61ac4c69006c03

atom/app/ui_runtime.cc
atom/browser/browser.cc
atom/browser/browser.h

index 44cacf7645807a24850f99d45b031ecda18fb929..c85a63fd4276cede0a188646e8f7448b097f9c0d 100644 (file)
@@ -67,12 +67,6 @@ void UiRuntime::OnAppControl(app_control_h app_control) {
   common::AppDB* appdb = common::AppDB::GetInstance();
   appdb->Set(kAppDBRuntimeSection, kAppDBRuntimeBundle,
              appcontrol->encoded_bundle());
-  atom::Browser *browser_model = atom::Browser::Get();
-  if (browser_model->is_ready()) {
-   browser_model->AppControl(std::move(appcontrol));
- } else {
-   browser_model->Launch(std::move(appcontrol));
- }
 }
 
 void UiRuntime::OnLanguageChanged(const std::string& language) {
index 6de6ca1ac9f68fa0eb7fbd3232d3d35a20925f62..42cc787ee980593c251fef47c3ebb544e16719a0 100644 (file)
@@ -15,7 +15,7 @@
 #include "base/run_loop.h"
 #include "base/threading/thread_task_runner_handle.h"
 #include "brightray/browser/brightray_paths.h"
-#include "tizen/common/resource_manager.h"
+
 namespace atom {
 
 Browser::Browser()
@@ -222,19 +222,5 @@ void Browser::Show() {
   for (BrowserObserver& observer : observers_)
     observer.OnResume();
 }
-void Browser::AppControl(
-    std::unique_ptr<common::AppControl> appcontrol) {
-  std::unique_ptr<common::ResourceManager::Resource> res =
-      resource_manager_->GetStartResource(appcontrol.get());
-
-  bool do_reset = res->should_reset();
-//To do
-}
-void Browser::Launch(std::unique_ptr<common::AppControl> appcontrol) {
-//To do
-}
-
-
-
 
 }  // namespace atom
index 08de52105a241af62a0124b138f4d51dde3c4a76..fc674dd929ee272df6805c53f363b54b9be3eae4 100644 (file)
@@ -16,9 +16,7 @@
 #include "base/strings/string16.h"
 #include "base/values.h"
 #include "native_mate/arguments.h"
-#include "tizen/common/app_control.h"
-#include "tizen/common/application_data.h"
-#include "tizen/common/resource_manager.h"
+
 #if defined(OS_WIN)
 #include "base/files/file_path.h"
 #endif
@@ -43,7 +41,7 @@ class Browser : public WindowListObserver {
   ~Browser();
 
   static Browser* Get();
-  std::unique_ptr<common::ResourceManager> resource_manager_;
+
   // Try to close all windows and quit the application.
   void Quit();
 
@@ -108,8 +106,6 @@ class Browser : public WindowListObserver {
 
   void Hide();
   void Show();
-  void AppControl(std::unique_ptr<common::AppControl> appcontrol);
-  void Launch(std::unique_ptr<common::AppControl> appcontrol);
 #if defined(OS_MACOSX)
   // Hide the application.
   void Hide();